Managing external identities to enable secure access for partners, customers, and other non-employees
Hi @Ashok Kumar
Based on the information you provided, it seems that you are experiencing an issue with the renew token functionality in the MSAL package for Okta. The account details are not available in the MSAL instance after a successful login, and the token details are not saved in the local storage.
After a successful login call, you can use the getAllAccounts() function to retrieve information about the currently signed-in users:
const myAccounts: AccountInfo[] = msalInstance.getAllAccounts();
To store a JWT in local storage after receiving it, please run the following code:
const config = {
auth: {
clientId: "1111-2222-3333-4444-55555555",
},
cache: {
cacheLocation: "localStorage",
},
};
const msalInstance = new msal.PublicClientApplication(config);
For more information: https://learn.microsoft.com/en-us/entra/identity-platform/msal-js-sso
Hope this helps. Do let us know if you any further queries.
Thanks,
Navya.
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.