Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
857 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// | ||
// FAuthData.h | ||
// Firebase | ||
// | ||
// Created by Katherine Fang on 7/30/14. | ||
// | ||
|
||
#import <Accounts/Accounts.h> | ||
#import "FAuthType.h" | ||
|
||
|
||
/** | ||
* 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 Firebase. | ||
* | ||
* It may include other metadata about the user, depending on the provider used to do the authentication. | ||
*/ | ||
@interface FAuthData : NSObject | ||
|
||
/** | ||
* @return Raw authentication token payload returned by the server | ||
*/ | ||
@property (nonatomic, strong, readonly) NSDictionary *auth; | ||
|
||
/** | ||
* @return Authentication token expiration timestamp (seconds since epoch) returned by the server | ||
*/ | ||
@property (nonatomic, strong, readonly) NSNumber *expires; | ||
|
||
/** | ||
* @return A uid for this user. It is unique across all auth providers. | ||
*/ | ||
@property (nonatomic, strong, readonly) NSString *uid; | ||
|
||
|
||
/** | ||
* @return The provider that authenticated this user | ||
*/ | ||
@property (nonatomic, readonly) NSString *provider; | ||
|
||
|
||
/** | ||
* @return The token that was used to authenticate this user with Firebase | ||
*/ | ||
@property (nonatomic, strong, readonly) NSString *token; | ||
|
||
|
||
/** | ||
* @return Provider data keyed by provider. Includes cached data from third-party providers | ||
*/ | ||
@property (nonatomic, strong, readonly) NSDictionary *providerData; | ||
|
||
|
||
@end |
Oops, something went wrong.