authenticateWithToken method
Authenticate to this CARP Service using a OAuthToken access token and a CarpUser. This method is typically used to re-authenticate a user based on a previously granted access token, for example when the app is restarted.
This does not require a BuildContext and does not open a web view. It does not require an internet connection either.
Returns the CarpUser with the OAuthToken access token.
Implementation
CarpUser authenticateWithToken({
required CarpUser user,
required OAuthToken token,
}) {
user.authenticated(token);
_currentUser = user;
_authEventController.add(AuthEvent.authenticated);
return user;
}