<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y00007qmlpQSAQOkta Classic EngineUniversal DirectoryAnswered2020-04-02T02:00:58.000Z2020-02-20T04:22:42.000Z2020-04-02T02:00:58.000Z

ZiqiL.43245 (Customer) asked a question.

SPA Application refresh token

I have a question about how to refresh token in SPA Application.

First i get accessToken in angular:

i use window.location.href to call /authorize API to get code, redirect_uri is localhost:4200/implict/callback, in callback ts, i get code and call /token API to get access token.

Then if access token is expire,

I call /authorize with prompt=none by window.location.href, redirect_uri is localhost:4200/implict/callback, in callback ts, i get code and call /token API to get access token.

But this way to get access token, will skip a new url and then redirect to call back, i think it's unfriendly to users.

I want to know, it's have any way to resolve this issue.


ZiqiL.43245 likes this.
  • Hi there! Apologies for the lack of response to your question. Going forward, we're implementing a new process to ensure that all Discussions receive a response from either another Community member or from the Okta Support team within 7 days of posting. Thank you for your patience while we put this into action!

     

    I know this question is a bit old now, but If you’re still looking for information or help I’d recommend reaching out to the fine folks in the Admin Pro Tips group to see if anyone there can help: https://support.okta.com/help/s/group/0F90Z000000EK23SAG/admin-pro-tips

     

    Thanks 🙂

    Expand Post
This question is closed.
Loading
SPA Application refresh token