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
Trying to get email and email_verified even when CheckEmailVerified: false is set in Config which leads to interface conversion: interface {} is nil, not string#6
Open
rafidkotta opened this issue
Oct 6, 2023
· 0 comments
Trying to get email and email_verified even when CheckEmailVerified: false is set in Config which leads to interface conversion: interface {} is nil, not string
Error triggers when user does not have a email id (when using only phone auth)
// Set authenticated user data into local context
c.Locals(cfg.ContextKey, User{
Email: token.Claims["email"].(string),
EmailVerified: token.Claims["email_verified"].(bool),
UserID: token.Claims["user_id"].(string),
})
The text was updated successfully, but these errors were encountered:
Trying to get
email
andemail_verified
even whenCheckEmailVerified: false
is set in Config which leads tointerface conversion: interface {} is nil, not string
Error triggers when user does not have a email id (when using only phone auth)
The text was updated successfully, but these errors were encountered: