I am trying to get the user token via Postman for the logged-in user: anurag.s.sinha@oracle.com. Tried with the below API.“https://dev-10159567.okta.com/oauth2/default/v1/token” but every time it ends up stating- {
“error”: “invalid_grant”,
“error_description”: “The authorization code is invalid or has expired.”
}
I have provided the grant_type, redirect_uri, client_id, client_secret and code. but still end up in the above error.
I am taking the code after I was logging in from the browser from the network API call and pasting it within 45 seconds.
Any help or information is appreciated. Thank you.
Same 400 Bad Request.
Your request resulted in an error. The ‘redirect_uri’ parameter must be a Login redirect URI in the client app settings: okta-dev-10159567 - Sign In