diff options
author | 2017-05-31 11:46:24 -0700 | |
---|---|---|
committer | 2017-05-31 11:46:24 -0700 | |
commit | a3b14cdf07419b76d149116774bc62e5831daf0c (patch) | |
tree | 12f2e0ac8f330934c1e2e5d74726fdfd48d3ca2f /Firebase | |
parent | 556325f37d17a0dfc27af96a5289056679c1f54f (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.m | 1 |
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 |