
HenryL.69725 (Customer) asked a question.
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') {

Hello Henry,
I found a discussion about this on the following link on the Development forum: https://devforum.okta.com/t/okta-signin-widget-and-refresh-tokens/11078/13
I am positive that you would find the information that you are looking on that discussion.
Natalia
Okta Inc.
I know this doc. It does not have the info I am looking for.
henry
I guess my question is:
How to use OktaSignIn tokenManager
this.oktaSignIn.authClient.tokenManager.
service to handle refresh token.
henry