Closed mihaiserban closed 4 years ago
I need to set the access token on axios instance, and i'm doing this onAuthentication. However I can't find a callback when the accessToken is refreshed.
There is an onToken callback in auth options, have you tried it?
on app mount/create, $msal.data.accessToken is empty.
Please take a look at this answer to a previous issue
Let me know if that helps.
@mvertopoulos the answer did the trick. used the watch feature to check for accessToken changes.
I didn't manage to use onToken, it didn't seem to get called.
I didn't manage to use onToken, it didn't seem to get called.
I will check the onToken issue.
I need to set the access token on axios instance, and i'm doing this onAuthentication. However I can't find a callback when the accessToken is refreshed.
on app mount/create, $msal.data.accessToken is empty.