Created
July 2, 2024 15:45
-
-
Save alexcastrodev/4e54d213dab9d755a680dbb1dc10100a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// import | |
import { useAuth0 } from '@auth0/auth0-react' | |
// hook | |
const { loginWithPopup } = useAuth0() | |
// Action | |
function handlePermission() { | |
loginWithPopup({ | |
authorizationParams: { | |
prompt: 'consent', | |
}, | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment