Skip to content

Update warrant js to v2 #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 2, 2022
Merged

Update warrant js to v2 #11

merged 3 commits into from
Dec 2, 2022

Conversation

stanleyphu
Copy link
Collaborator

No description provided.

children: React.ReactNode;
}

const LOCAL_STORAGE_KEY_SESSION_TOKEN = "__warrantSessionToken";

const WarrantProvider = (options: AuthorizationProvider): JSX.Element => {
const { clientKey, children } = options;
const { clientKey, endpoint = API_URL_BASE, children } = options;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can leave this uninitialized if it's not passed in and warrant-js should take care of the default? Then we don't need API_URL_BASE in the constants.ts in this library

@stanleyphu stanleyphu merged commit a30ec14 into master Dec 2, 2022
@stanleyphu stanleyphu deleted the UpdateWarrantJsV2 branch December 2, 2022 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants