I'm using the apple login package on the flutter. You can get uidtoken in conjunction with firebase. I'm going to save this uid Token on the server and manage the users. Will a new uidToken be issued after the expiration time?
Asked
Active
Viewed 70 times
0

Frank van Puffelen
- 565,676
- 79
- 828
- 807

김민진
- 49
- 7
-
yes, newToken was issued – G H Prakash Nov 08 '21 at 13:00
-
When a new token is issued, how can we recognize that it is an old user? @GHPrakash – 김민진 Nov 08 '21 at 13:52
-
Frank van Puffelen Thank you and sorry i`m very late – 김민진 Nov 19 '21 at 01:26
1 Answers
1
Right now it is not clear to me what you mean by "uidToken", so I'll explain the two most likely things below. In future questions please include the code that shows where you are stuck, as it is the easiest way to prevent confusion.
In Firebase Authentication:
- Each user gets a UID (short for user identifier) that identifies them. This will never change for a user. So even if they sign in on a different system, they'll have the same UID.
- Authentication state is kept in a short lived ID token. This token is valid for one hour (by default) and is automatically refreshed by the Firebase SDKs behind the scenes. So the ID token changes every hour or so.

Frank van Puffelen
- 565,676
- 79
- 828
- 807