You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The returned user object does not have a uid attribute when using the self.user = authentication.sign_in_with_token(token) method. But on refresh, the self.user = authentication.get_user() will have the uid attribute.
Looking at the code, all other sign in methods(meaning NOT sign_in_with_token()) return a FireUser object.
Is there a reason why we can't also return said object with this method?
I'm going to try and wrap my return with FireUser and see what breaks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The returned user object does not have a uid attribute when using the
self.user = authentication.sign_in_with_token(token)
method. But on refresh, theself.user = authentication.get_user()
will have theuid
attribute.Looking at the code, all other sign in methods(meaning NOT
sign_in_with_token()
) return aFireUser
object.Is there a reason why we can't also return said object with this method?
I'm going to try and wrap my return with FireUser and see what breaks!
EDIT
This works as expected:
self.user = authentication.FireUser(authentication.sign_in_with_token(token).user)
Beta Was this translation helpful? Give feedback.
All reactions