GameCenterAuthProvider class

This class should be used to create a new Game Center credential to trigger an authentication flow on Apple platform.

// Requires authenticating with game center before proceeding with the below:
final gameCenterCredential = GameCenterAuthProvider.credential();

FirebaseAuth.instance.signInWithCredential(gameCenterCredential)
 .then(...);
Inheritance

Constructors

GameCenterAuthProvider()
Creates a new instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
parameters Map<String, String>
Returns the parameters for this provider instance.
no setter
providerId String
The provider ID.
finalinherited
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
setCustomParameters(Map<String, String> customOAuthParameters) GameCenterAuthProvider
Sets the OAuth custom parameters to pass in a Game Center OAuth request for popup and redirect sign-in operations.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

GAME_CENTER_SIGN_IN_METHOD String
This corresponds to the sign-in method identifier.
no setter
PROVIDER_ID String
no setter

Static Methods

credential() OAuthCredential
Create a new GameCenterAuthCredential to be used on FlutterFire Auth plugin only.