Skip to content

Commit

Permalink
chore: passing local authentication options as well to the auth0 inst…
Browse files Browse the repository at this point in the history
…ance created in hook
  • Loading branch information
desusai7 committed Aug 2, 2024
1 parent d398d0a commit d09c3e7
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
46 changes: 46 additions & 0 deletions example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/hooks/auth0-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const Auth0Provider = ({
localAuthenticationOptions?: LocalAuthenticationOptions;
}>) => {
const client = useMemo(
() => new Auth0({ domain, clientId }),
() => new Auth0({ domain, clientId, localAuthenticationOptions }),
[domain, clientId]
);
const [state, dispatch] = useReducer(reducer, initialState);
Expand Down

0 comments on commit d09c3e7

Please sign in to comment.