Credentials class Application

A class, representing the credentials used for authenticating a User

Implemented types

Constructors

Credentials.anonymous({bool reuseCredentials = true})
Returns a Credentials object that can be used to authenticate an anonymous user. Setting reuseCredentials to false will create a new anonymous user, upon App.logIn. Anonymous Authentication Docs
Credentials.apiKey(String key)
Returns a Credentials object that can be used to authenticate a user with an API key. To generate an API key, use ApiKeyClient.create or the App Services web UI.
Credentials.apple(String idToken)
Returns a Credentials object that can be used to authenticate a user with a Google account using an id token.
Credentials.emailPassword(String email, String password)
Returns a Credentials object that can be used to authenticate a user with their email and password. A user can login with email and password only after they have registered their account and verified their email. Email/Password Authentication Docs
Credentials.facebook(String accessToken)
Returns a Credentials object that can be used to authenticate a user with a Facebook account.
Credentials.function(String payload)
Returns a Credentials object that can be used to authenticate a user with a custom Function. Custom Function Authentication Docs
Credentials.googleAuthCode(String authCode)
Returns a Credentials object that can be used to authenticate a user with a Google account using an authentication code.
Credentials.googleIdToken(String idToken)
Returns a Credentials object that can be used to authenticate a user with a Google account using an id token.
Credentials.jwt(String token)
Returns a Credentials object that can be used to authenticate a user with a custom JWT. Custom-JWT Authentication Docs

Properties

hashCode int
The hash code for this object.
no setterinherited
provider AuthProviderType
no setter
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