AuthTokenChange class

An event of AuthTokenProvider.onTokenChanged: a signal that the token changed.

Read only one thing from token: an empty one means that nobody is signed in. A token that is not empty may be the new token or a placeholder (a provider that learns of a change without the token emits one), so never send it: call AuthTokenProvider.getAccessToken for the token and read AuthTokenProvider.uid for the user.

toString does not show the token.

import 'package:firebase_app_dart/firebase_app_dart.dart';

const AuthTokenChange signedOut = AuthTokenChange('');

Constructors

AuthTokenChange(String token)
Creates an event holding token.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
token → String
Empty after a sign-out; otherwise the new token or a placeholder for it. Not for sending.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override