AuthorizationCredentialAppleID class
Authorization details from a successful Sign in with Apple flow.
Most fields are optional in this class.
Especially givenName, familyName, and email member will only be provided on the first authorization between the app and Apple ID.
The authorizationCode member is always present and should be used to check the authorizations with Apple servers from your backend. Upon successful validation, you should create a session in your system for the current user, or consider her now logged in.
- Annotations
Constructors
- AuthorizationCredentialAppleID({@required String? userIdentifier, @required String? givenName, @required String? familyName, required String authorizationCode, @required String? email, @required String? identityToken, @required String? state})
-
Creates an instance which contains the result of a successful Sign in with Apple flow.
const
Properties
-
The verification code for the current authorization.
final
- email → String?
-
The users email in case it was requested.
You will need to provide the AppleIDAuthorizationScopes.email scope to the AppleIDAuthorizationRequest for requesting this information.
final
- familyName → String?
-
The users family name, in case it was requested.
You will need to provide the AppleIDAuthorizationScopes.fullName scope to the AppleIDAuthorizationRequest for requesting this information.
final
- givenName → String?
-
The users given name, in case it was requested.
You will need to provide the AppleIDAuthorizationScopes.fullName scope to the AppleIDAuthorizationRequest for requesting this information.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- identityToken → String?
-
A JSON Web Token (JWT) that securely communicates information about the user to your app.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → String?
-
The
state
parameter that was passed to the request.final - userIdentifier → String?
-
An identifier associated with the authenticated user.
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.
inherited