Skip to content

Is it possible to refresh token without Client Secret? #3618

Answered by vinckr
baominwang asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @baominwang
See our blogpost OAuth2 with PKCE for Mobile Apps and Single Page Apps for some details how it works.

Mobile apps and Single Page Applications (SPAs) can refresh their tokens using the OAuth2 refresh token grant. The refresh token is a special token that can be used to obtain a new access token or ID token without the user's involvement. The refresh token is issued to the client during the initial token issuance and can be used to obtain a new token when the current token expires.
Here's an example of how to refresh an access token with Ory:


// Set up the endpoint and refresh token  
const endpoint = "https://oauth2.example.com/token"  
const refreshToken = "<refresh to…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vinckr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants