setToken method
Implementation
void setToken(
String? userId, String idToken, String refreshToken, int expiresIn) {
var expiry = DateTime.now().add(Duration(seconds: expiresIn));
_token = Token(userId, idToken, refreshToken, expiry);
write(_token);
}