But I’m not sure what to do when I redirect to the redirect_url (here my dashboard url, e.g: dashboard.example.com). I mean I don’t know how to use this code.
I get the code appended to url after redirect, so I think everything’s working, but am not sure how to use it further to populate the dashboard with user details and retrieve content.
Do I use my API endpoint here instead of the dashboard url?
In order to give you the most relevant information, can you tell us a little bit about your app (is it a spa or regular web app, what language are you using, which SDK are you using, .etc)?
The Auth0 SDKs provide a simplified way of handling the code exchange for your app. You can find example apps in our Auth0. In general, your app will need to exchange the authorization code for an Access Token and ID Token by sending a POST to your Auth0 tenant’s /oauth/token endpoint:
But how do i get the AUTHORIZATION_CODE? The Docs say i have to get the code from my response header. I’ve been trying to send a http GET request in my Java Springboot Web App but can’t find a “location” header.