Skip to content

Commit

Permalink
fix: use email
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie committed Jun 27, 2024
1 parent 4682d1f commit 31cc2ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goth.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (g *GothAuthzPrincipalResolver) Resolve(c *fiber.Ctx) (AuthzPrincipal, erro
return AuthzNoPrincipial, err
}

return AuthzPrincipal(fmt.Sprintf(authzPrincipalFormat, session.UserID.String())), nil
return AuthzPrincipal(fmt.Sprintf(authzPrincipalFormat, session.User.Email)), nil
}

// NewGothAuthzPrincipalResolver returns a new GothAuthzPrincipalResolver.
Expand Down

0 comments on commit 31cc2ca

Please sign in to comment.