devsite/tools/jazzy/templates

FirebaseAuth Framework Reference

GoogleAuthProvider

@available(iOS 13, tvOS 13, macOS 10.15, watchOS 7, *)
@objc(FIRGoogleAuthProvider)
open class GoogleAuthProvider : NSObject

Utility class for constructing Google Sign In credentials.

  • id

    A string constant identifying the Google identity provider.

    Declaration

    Swift

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

    Declaration

    Swift

    @objc
    open class func credential(withIDToken idToken: String,
                               accessToken: String) -> AuthCredential

    Parameters

    idToken

    The ID Token from Google.

    accessToken

    The Access Token from Google.

    Return Value

    An AuthCredential containing the Google credentials.