Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sacsand authored Feb 20, 2022
1 parent 626aba1 commit 010814e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gofiberfirebaseauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ func New(config Config) fiber.Handler {
// 5) IF IdToken valid return SucessHandler
if token != nil {

type user struct {
type User struct {
EmailVerified bool
UserID, Email string
}

// Set authenticated user data into local context
c.Locals(cfg.ContextKey, user{
c.Locals(cfg.ContextKey, User{
Email: token.Claims["email"].(string),
EmailVerified: token.Claims["email_verified"].(bool),
UserID: token.Claims["user_id"].(string),
Expand Down

0 comments on commit 010814e

Please sign in to comment.