FirebaseAuth Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GameCenterAuthProvider
@available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *)
@objc(FIRGameCenterAuthProvider)
open class GameCenterAuthProvider : NSObject
A concrete implementation of AuthProvider
for Game Center Sign In. Not available on watchOS.
-
A string constant identifying the Game Center identity provider.
Declaration
Swift
@objc
public static let id: String
-
Declaration
Swift
@objc
open class func getCredential(completion: @escaping (AuthCredential?, Error?) -> Void)
-
Declaration
Swift
@available(iOS 13, tvOS 13, macOS 10.15, watchOS 8, *)
open class func getCredential() async throws -> AuthCredential
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-11 UTC.
[null,null,["Last updated 2025-03-11 UTC."],[],[],null,["# FirebaseAuth Framework Reference\n\nGameCenterAuthProvider\n======================\n\n @available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *)\n @objc(FIRGameCenterAuthProvider)\n open class GameCenterAuthProvider : NSObject\n\nA concrete implementation of `AuthProvider` for Game Center Sign In. Not available on watchOS.\n- `\n ``\n ``\n `\n\n ### [id](#/c:@M@FirebaseAuth@objc(cs)FIRGameCenterAuthProvider(cpy)id)\n\n `\n ` \n A string constant identifying the Game Center identity provider. \n\n #### Declaration\n\n Swift \n\n @objc\n public static let id: String\n\n- `\n ``\n ``\n `\n\n ### [getCredential(completion:)](#/c:@M@FirebaseAuth@objc(cs)FIRGameCenterAuthProvider(cm)getCredentialWithCompletion:)\n\n `\n ` \n Creates an [AuthCredential](../Classes/AuthCredential.html) for a Game Center sign in. \n\n #### Declaration\n\n Swift \n\n @objc\n open class func getCredential(completion: @escaping (../Classes/AuthCredential.html?, Error?) -\u003e Void)\n\n- `\n ``\n ``\n `\n\n ### [getCredential()](#/s:12FirebaseAuth010GameCenterB8ProviderC13getCredentialAA0bG0CyYaKFZ)\n\n `\n ` \n Creates an [AuthCredential](../Classes/AuthCredential.html) for a Game Center sign in. \n\n #### Declaration\n\n Swift \n\n @available(iOS 13, tvOS 13, macOS 10.15, watchOS 8, *)\n open class func getCredential() async throws -\u003e ../Classes/AuthCredential.html"]]