FIRGoogleAuthProvider

@interface FIRGoogleAuthProvider : NSObject

Utility class for constructing Google Sign In credentials.

  • Creates an FIRAuthCredential for a Google sign in.

    Declaration

    Swift

    class func credential(withIDToken IDToken: String, accessToken: String) -> FIRAuthCredential

    Objective-C

    + (nonnull FIRAuthCredential *)credentialWithIDToken:(nonnull NSString *)IDToken
                                             accessToken:
                                                 (nonnull NSString *)accessToken;

    Parameters

    IDToken

    The ID Token from Google.

    accessToken

    The Access Token from Google.

    Return Value

    A FIRAuthCredential containing the Google credentials.

  • This class should not be initialized.

    Declaration

    Objective-C

    - (nonnull instancetype)init;