devsite/tools/jazzy/templates

FirebaseAuth Framework Reference

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.

  • id

    A string constant identifying the Game Center identity provider.

    Declaration

    Swift

    @objc
    public static let id: String
  • Creates an AuthCredential for a Game Center sign in.

    Declaration

    Swift

    @objc
    open class func getCredential(completion: @escaping (AuthCredential?, Error?) -> Void)
  • Creates an AuthCredential for a Game Center sign in.

    Declaration

    Swift

    @available(iOS 13, tvOS 13, macOS 10.15, watchOS 8, *)
    open class func getCredential() async throws -> AuthCredential

Learn about options to help your users control their data.

Updated Feb 20, 2025

Use machine learning in your apps to solve real-world problems.

Updated Feb 20, 2025

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Sep 26, 2023