FirebaseAuth Framework Reference

FIRGoogleAuthProvider


@interface FIRGoogleAuthProvider : NSObject

Utility class for constructing Google Sign In credentials.

  • Creates an AuthCredential for a Google sign in.

    Declaration

    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

    An AuthCredential containing the Google credentials.

  • This class should not be initialized.

    Declaration

    Objective-C

    - (nonnull instancetype)init;