Appearance
Documentation / expo / getAccessToken
Function: getAccessToken()
getAccessToken(
o
?):Promise
<string
|null
>
Parameters
• o?: Object
• o.strict?: boolean
Returns
Promise
<string
| null
>
The access token if the user is logged in, otherwise null
.
Deprecated
Use client.getAccessToken()
instead.
Get the access token for the current user, if they are logged in. This method will refresh the user's access token if is nearing expiration or has expired.