aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firebase
diff options
context:
space:
mode:
authorGravatar Xiangtian Dai <xiangtian@google.com>2017-05-31 11:46:24 -0700
committerGravatar GitHub <noreply@github.com>2017-05-31 11:46:24 -0700
commita3b14cdf07419b76d149116774bc62e5831daf0c (patch)
tree12f2e0ac8f330934c1e2e5d74726fdfd48d3ca2f /Firebase
parent556325f37d17a0dfc27af96a5289056679c1f54f (diff)
Schedules automatic auth token refresh as soon as the triggering method is called. (#43)
Diffstat (limited to 'Firebase')
-rw-r--r--Firebase/Auth/Source/FIRAuth.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Firebase/Auth/Source/FIRAuth.m b/Firebase/Auth/Source/FIRAuth.m
index e90488b..e844d32 100644
--- a/Firebase/Auth/Source/FIRAuth.m
+++ b/Firebase/Auth/Source/FIRAuth.m
@@ -308,6 +308,7 @@ static NSMutableDictionary *gKeychainServiceNameForAppName;
if (strongSelf && !strongSelf->_autoRefreshTokens) {
FIRLogInfo(kFIRLoggerAuth, @"I-AUT000002", @"Token auto-refresh enabled.");
strongSelf->_autoRefreshTokens = YES;
+ [strongSelf scheduleAutoTokenRefresh];
strongSelf->_applicationDidBecomeActiveObserver = [[NSNotificationCenter defaultCenter]
addObserverForName:UIApplicationDidBecomeActiveNotification
object:nil