Skip to content

Commit

Permalink
fix comp err
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley committed Feb 4, 2024
1 parent 044ea2a commit 943735c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/src/controllers/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ func NewAuthController(authService services.AuthServiceInterface, authSettings c
// @Failure 401 {string} string "failed to get current user"
// @Router /api/v1/auth/me [get]
func (a *AuthController) Me(c *fiber.Ctx) error {
user, err := a.authService.Me(types.From(c).Issuer)
claims, err := types.From(c)
if err != nil {
return err.FiberError(c)
}
user, err := a.authService.Me(claims.Issuer)
if err != nil {
return err.FiberError(c)
}
Expand Down

0 comments on commit 943735c

Please sign in to comment.