Category : auth0

I’m using the "@auth0/auth0-react": "^1.5.0" package for pkce authentication. I tried to set the scope, but it seems it didn’t work: // method1 which I’ve tried <Auth0Provider domain={urls().oauth} clientId={apiConstants.clientId} redirectUri={urls().redirect} scope="read" > <AppRouter /> </Auth0Provider> // method2 in the loginWithRedirect import { useAuth0 } from ‘@auth0/auth0-react’; function Auth0LoginButton() { const { isAuthenticated, loginWithRedirect } = ..

Read more

Working on a NextJS app using nextjs-auth0 (to which I’m totally new) for authentication. I wrapped my _app.js with UserProvider as the docs suggest and using getInitialProps to set a global online/offline status to the entire app as so; import App from "next/app"; import { UserProvider} from ‘@auth0/nextjs-auth0’; export default function MyApp({Component, pageProps, status}) { ..

Read more