Closed StainlessStlRat closed 2 years ago
I think it panics because you try to access UID
in a null userRecord
. You can handle the errors as below:
userRecord, err := authClient.CreateUser(context.Background(), params)
if err != nil {
log.Fatalln("Error when registering user: ", err)
}
return userRecord.UID
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
Attempt to create a user whose email is already in use with the project configured for only one account per email
Relevant Code: