Proper auth0-js state/nonce management?

Hi @AaronBaldwin,

Welcome and thank you posting in Auth0 Community!

First, your app should get consent from the user to invoke the API on their behalf. Auth0 will authenticate the user and obtain consent, unless consent has been previously given.

Are you sending the users to the authorization URL?

https://YOUR_DOMAIN/authorize?
audience=YOUR_API_AUDIENCE&
scope=YOUR_SCOPE&
response_type=YOUR_RESPONSE_TYPE&
client_id=YOUR_CLIENT_ID&
redirect_uri=https://YOUR_APP/callback&
nonce=YOUR_CRYPTOGRAPHIC_NONCE&
state=YOUR_OPAQUE_VALUE

What type of application are you using?
Which doc are you referring to?

Please check these docs:

1 Like