Skip to content

Commit 6f5f09e

Browse files
committed
Remove endpoint constant / default value
1 parent d6fa03c commit 6f5f09e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/WarrantProvider.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { useCallback, useEffect, useState } from "react";
22
import { Client as WarrantClient, WarrantCheck } from "@warrantdev/warrant-js";
33

4-
import { API_URL_BASE } from "./constants";
54
import WarrantContext from "./WarrantContext";
65

76
export interface AuthorizationProvider {
@@ -13,7 +12,7 @@ export interface AuthorizationProvider {
1312
const LOCAL_STORAGE_KEY_SESSION_TOKEN = "__warrantSessionToken";
1413

1514
const WarrantProvider = (options: AuthorizationProvider): JSX.Element => {
16-
const { clientKey, endpoint = API_URL_BASE, children } = options;
15+
const { clientKey, endpoint, children } = options;
1716
const [sessionToken, setSessionToken] = useState<string>("");
1817
const [isLoading, setIsLoading] = useState<boolean>(false);
1918

src/constants.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)