Firebase authentication not revoked when user deleted?

后端 未结 1 1634
灰色年华
灰色年华 2020-11-29 10:08

I\'ve encountered a strange behavior of the Firebase simple login with email/password: If I login with an existing user account I\'m able to write to a Firebase ref (i.e. $r

相关标签:
1条回答
  • 2020-11-29 10:33

    Short answer: by design, or more accurately, not applicable in this case.

    During auth, FirebaseSimpleLogin generates a token. Once the token is given to a client, it remains valid until it expires. Thus, when you delete the user account in simple login, this does not somehow go to the client's machine and remove the token. This is a pretty standard auth model, and the expiration length on the token (configurable in Forge) is the key constraint for security.

    If you want to revoke logins immediately, then simple login is not the right tool for the job. You'll want to use custom login and generate your own tokens. There are some great discussions on revokable tokens, so I'll defer you to those, since that's outside the purview of your question.

    0 讨论(0)
提交回复
热议问题