From 66bf845b0c349c76436ef893fdb4d3636960e4f0 Mon Sep 17 00:00:00 2001 From: Morgan Chen Date: Tue, 23 Jan 2018 11:51:34 -0800 Subject: [PATCH 1/2] add FIRUser behavior to documentation --- Firebase/Auth/Source/Public/FIRUser.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Firebase/Auth/Source/Public/FIRUser.h b/Firebase/Auth/Source/Public/FIRUser.h index 1bba71057a0..c884b987947 100644 --- a/Firebase/Auth/Source/Public/FIRUser.h +++ b/Firebase/Auth/Source/Public/FIRUser.h @@ -56,7 +56,10 @@ typedef void (^FIRSendEmailVerificationCallback)(NSError *_Nullable error) NS_SWIFT_NAME(SendEmailVerificationCallback); /** @class FIRUser - @brief Represents a user. + @brief Represents a user. Firebase Auth does not attempt to validate users + when loading them from the keychain. Invalidated users (such as those + whose passwords have been changed on another client) are automatically + logged out when an auth-dependent operation is attempted. @remarks This class is thread-safe. */ NS_SWIFT_NAME(User) From a21ccc65eb0d80636949c451408383bd7fff048a Mon Sep 17 00:00:00 2001 From: Morgan Chen Date: Thu, 22 Feb 2018 09:57:30 -0800 Subject: [PATCH 2/2] address PR comments --- Firebase/Auth/Source/Public/FIRUser.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Firebase/Auth/Source/Public/FIRUser.h b/Firebase/Auth/Source/Public/FIRUser.h index c884b987947..74e65a9a320 100644 --- a/Firebase/Auth/Source/Public/FIRUser.h +++ b/Firebase/Auth/Source/Public/FIRUser.h @@ -59,7 +59,8 @@ typedef void (^FIRSendEmailVerificationCallback)(NSError *_Nullable error) @brief Represents a user. Firebase Auth does not attempt to validate users when loading them from the keychain. Invalidated users (such as those whose passwords have been changed on another client) are automatically - logged out when an auth-dependent operation is attempted. + logged out when an auth-dependent operation is attempted or when the + ID token is automatically refreshed. @remarks This class is thread-safe. */ NS_SWIFT_NAME(User)