Protocols

The following protocols are available globally.

  • @protocol FIRAuthUIDelegate A protocol to handle user interface interactions for Firebase Auth.

    Declaration

    Objective-C

    @protocol FIRAuthUIDelegate <NSObject>
  • Undocumented

    Declaration

    Objective-C

    @protocol FIRFederatedAuthProvider <NSObject>
    
    /**
        The type of block invoked when obtaining an auth credential.
        @param credential The credential obtained.
        @param error The error that occurred if any.
     */
    typedef void(^FIRAuthCredentialCallback)(FIRAuthCredential *_Nullable credential,
                                             NSError *_Nullable error)
                                                 NS_SWIFT_NAME(AuthCredentialCallback);
    
    #if TARGET_OS_IOS
    /**
        Used to obtain an auth credential via a mobile web flow.
        @param UIDelegate An optional UI delegate used to presenet the mobile web flow.
        @param completion Optionally; a block which is invoked asynchronously on the main thread when
            the mobile web flow is completed.
     */
    - (void)getCredentialWithUIDelegate:(nullable id<FIRAuthUIDelegate>)UIDelegate
                             completion:(nullable FIRAuthCredentialCallback)completion;
    #endif  // TARGET_OS_IOS
    
    @end
  • Represents user data returned from an identity provider.

    Declaration

    Objective-C

    @protocol FIRUserInfo <NSObject>