Skip to content

Instantly share code, notes, and snippets.

@jrgleason
Created October 19, 2024 16:39
Show Gist options
  • Select an option

  • Save jrgleason/5a6a4d0e2985253b5a070cc6489d2d92 to your computer and use it in GitHub Desktop.

Select an option

Save jrgleason/5a6a4d0e2985253b5a070cc6489d2d92 to your computer and use it in GitHub Desktop.
<Auth0Provider
// @ts-ignore
domain={domain}
// @ts-ignore
clientId={clientId}
useRefreshTokens={true}
cacheLocation={"localstorage"}
// TODO: Avoid hardcoding these values
advancedOptions={{defaultScope: 'email'}}
authorizationParams={{
redirect_uri: redirectUrl,
audience: "https://cbusha.com",
defaultScope: "email",
}}
>
<Router>
<CssBaseline/>
<CBusAppBar/>
<main style={{height: "100%"}}>
<Splash/>
</main>
</Router>
</Auth0Provider>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment