OAuthProvider

class OAuthProvider : NSObject

A concrete implementation of FIRAuthProvider for generic OAuth Providers.

  • Creates an FIRAuthCredential for that OAuth 2 provider identified by providerID, ID token and access token.

    Declaration

    Swift

    class func credential(withProviderID providerID: String, idToken IDToken: String, accessToken: String?) -> FIRAuthCredential

    Parameters

    providerID

    The provider ID associated with the Auth credential being created.

    IDToken

    The IDToken associated with the Auth credential being created.

    accessToken

    The accessstoken associated with the Auth credential be created, if available.

    Return Value

    A FIRAuthCredential for the specified provider ID, ID token and access token.

  • Creates an FIRAuthCredential for that OAuth 2 provider identified by providerID using an ID token.

    Declaration

    Swift

    class func credential(withProviderID providerID: String, accessToken: String) -> FIRAuthCredential

    Parameters

    providerID

    The provider ID associated with the Auth credential being created.

    accessToken

    The accessstoken associated with the Auth credential be created

    Return Value

    A FIRAuthCredential.

  • This class is not meant to be initialized.