eficode / pipeline-the-game

A digital version of: https://www.praqma.com/stories/pipeline-card-game/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error "Missing or insufficient permissions." when capital letters are in the email address

sofusalbertsen opened this issue · comments

Steps to reproduce:
Try to sign up with Test@eficode.com
When clicking sign up, your get the error message:
"Missing or insufficient permissions."

Changing it to lowercase solves the problem
Screenshot from 2021-04-09 07-45-49

@sofusalbertsen firebase internally creates the user token with the lowercase email. While creating a user record in the database we check that the email is the same as the one in the token. #276 forces the email to be lowercase and solves the problem

Wow that was fast!
Thanks @rams23 !