FAuthData Class Reference

Inherits from NSObject
Declared in FAuthData.h

Overview

The FAuthData class is a wrapper around the user metadata returned from the Firebase auth server. It includes the provider authenticated against, a uid (with the possible exception of authenticating against a custom backend), and a token used to authenticate with a Firebase database.

It may include other metadata about the user, depending on the provider used to do the authentication.

  auth

Raw authentication token payload returned by the server

@property (nonatomic, strong, readonly) NSDictionary *auth

Return Value

Raw authentication token payload returned by the server

Declared In

FAuthData.h

  expires

Authentication token expiration timestamp (seconds since epoch) returned by the server

@property (nonatomic, strong, readonly) NSNumber *expires

Return Value

Authentication token expiration timestamp (seconds since epoch) returned by the server

Declared In

FAuthData.h

  uid

A uid for this user. It is unique across all auth providers.

@property (nonatomic, strong, readonly) NSString *uid

Return Value

A uid for this user. It is unique across all auth providers.

Declared In

FAuthData.h

  provider

The provider that authenticated this user

@property (nonatomic, readonly) NSString *provider

Return Value

The provider that authenticated this user

Declared In

FAuthData.h

  token

The token that was used to authenticate this user with a Firebase database

@property (nonatomic, strong, readonly) NSString *token

Return Value

The token that was used to authenticate this user with a Firebase database.

Declared In

FAuthData.h

  providerData

Provider data keyed by provider. Includes cached data from third-party providers

@property (nonatomic, strong, readonly) NSDictionary *providerData

Return Value

Provider data keyed by provider. Includes cached data from third-party providers

Declared In

FAuthData.h