SyncCredentials class
Credentials used to authenticate a sync client against a server.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
googleAuthString(
String data) → SyncCredentials - Google authentication.
-
googleAuthUint8List(
Uint8List data) → SyncCredentials - Google authentication.
-
jwtAccessToken(
String jwtAccessToken) → SyncCredentials - JSON Web Token (JWT): an access token that is used to access resources.
-
jwtCustomToken(
String jwtCustomToken) → SyncCredentials - JSON Web Token (JWT): a token that is neither an ID, access, nor refresh token.
-
jwtIdToken(
String jwtIdToken) → SyncCredentials - JSON Web Token (JWT): an ID token that typically provides identity information about the authenticated user.
-
jwtRefreshToken(
String jwtRefreshToken) → SyncCredentials - JSON Web Token (JWT): a refresh token that is used to obtain a new access token.
-
none(
) → SyncCredentials - No credentials - usually only for development purposes with a server configured to accept all connections without authentication.
- Shared secret authentication.
- Shared secret authentication.
-
userAndPassword(
String user, String password) → SyncCredentials - Username and password authentication.