Skip to main content

updateAccessToken method

Future updateAccessToken ({required String accessToken, required String refreshToken})

<p>This function is used to updated the access token of the user.</p> <p>params:</p> <ul> <li><code>accessToken</code></li> <li><code>refreshToken</code></li> </ul>

Implementation

Future updateAccessToken(\{
required String accessToken,
required String refreshToken,
\}) async \{
_currentUser!.refreshToken = refreshToken;
_currentUser!.authToken = accessToken;
saveUserInHive();
\}