<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
0D54z000077gNcZCAUOkta Classic EngineSingle Sign-OnAnswered2021-08-19T18:24:57.000Z2021-08-18T19:16:25.000Z2021-08-19T18:24:57.000Z

HenryL.69725 (Customer) asked a question.

How to use oktaSignIn widget to handle refresh token?

I am using following code to get accessToken to authorized my site Rest API. I can get refresh token with following code as well.

 

How to use refresh token to get new access token? Any sample code?

 

Thanks.

 

this.oktaSignIn = new OktaSignIn({

baseUrl: 'https://' + my_okta,

clientId: my_okta_CLIENT_ID,

logo: '../img/some-portal.png',

redirectUri: window.location.href + 'login/callback',

authParams: {

issuer: 'https://' + my_okta_ORG + '/oauth2/default',

responseType: ['id_token', 'token'],

scopes: ['openid', 'offline_access', 'email', 'profile'],

}

});

this.oktaSignIn.renderEl({

el: '*widget-container'

}, function success(res) {

if (res.status === 'SUCCESS') {


This question is closed.
Loading
How to use oktaSignIn widget to handle refresh token?