aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase/Database
diff options
context:
space:
mode:
authorGravatar Xiangtian Dai <xiangtian@google.com>2017-05-26 17:08:45 -0700
committerGravatar GitHub <noreply@github.com>2017-05-26 17:08:45 -0700
commit7ac4caa016d09faa5f8f44d816661b7401c852e5 (patch)
treed9877c594f660917f8f619ec08ca2044ea41a5e2 /Firebase/Database
parent7040a03eb07655e20e513da90b73f4bc7df4ad28 (diff)
Uses official Firebase Auth product names in code and doc. (#32)
Also fixes minor leftovers from previous auth crendetial refactory.
Diffstat (limited to 'Firebase/Database')
-rw-r--r--Firebase/Database/Login/FAuthTokenProvider.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/Firebase/Database/Login/FAuthTokenProvider.m b/Firebase/Database/Login/FAuthTokenProvider.m
index e406ae7..d1207c6 100644
--- a/Firebase/Database/Login/FAuthTokenProvider.m
+++ b/Firebase/Database/Login/FAuthTokenProvider.m
@@ -45,7 +45,7 @@ static NSString *const FIRAuthStateDidChangeInternalNotificationTokenKey = @"FIR
@end
/**
- * This is a hack that copies the definitions of Firebear error codes. If the error codes change in the original code, this
+ * This is a hack that copies the definitions of Firebase Auth error codes. If the error codes change in the original code, this
* will break at runtime due to undefined behavior!
*/
typedef NS_ENUM(NSUInteger, FIRErrorCode) {
@@ -104,7 +104,7 @@ typedef NS_ENUM(NSUInteger, FIRErrorCode) {
@end
-@interface FIRFirebearAuthTokenProvider : NSObject <FAuthTokenProvider>
+@interface FIRFirebaseAuthTokenProvider : NSObject <FAuthTokenProvider>
@property (nonatomic, strong) id<FIRFirebaseAppLike> app;
/** Strong references to the auth listeners as they are only weak in FIRFirebaseApp */
@@ -114,7 +114,7 @@ typedef NS_ENUM(NSUInteger, FIRErrorCode) {
@end
-@implementation FIRFirebearAuthTokenProvider
+@implementation FIRFirebaseAuthTokenProvider
- (instancetype) initWithFirebaseApp:(id<FIRFirebaseAppLike>)app {
self = [super init];
@@ -156,7 +156,7 @@ typedef NS_ENUM(NSUInteger, FIRErrorCode) {
@implementation FAuthTokenProvider
+ (id<FAuthTokenProvider>) authTokenProviderForApp:(id)app {
- return [[FIRFirebearAuthTokenProvider alloc] initWithFirebaseApp:app];
+ return [[FIRFirebaseAuthTokenProvider alloc] initWithFirebaseApp:app];
}
@end