Does getAccessToken() retrieve the token from secure storage?

Hi,

Does await getAccessToken() retrieve the token from secure storage or somewhere else on a react-native app?

Best wishes,

Arron

@Arron Hi,
It returns a promise that will return the access token as a string. If no access token is available (either does not exist, or expired), then the promise will be rejected.

The token should be in local storage and you can clear it with the below function.

Thanks Lijia,

I guess my question is how secure is the token when stored in local storage if you have any info on that?

Best wishes,

Arron

Hi, any update on my query? Thanks in advance!