Skip to content

Commit

Permalink
Log.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Jun 13, 2024
1 parent db00114 commit 7564d3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/console/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,9 @@ func (cs *consoleServer) checkIsAuthenticatedUser(token string) (*models.V1User,
}

claims := &jwt.MapClaims{}
_, _, err := new(jwt.Parser).ParseUnverified(string(token), claims)
_, _, err := new(jwt.Parser).ParseUnverified(token, claims)
if err != nil {
return nil, nil, fmt.Errorf("unable to parse jwt: %w", err)
return nil, nil, fmt.Errorf("unable to parse jwt %q: %w", token, err)
}

metal, err := metalgo.NewDriver(cs.spec.MetalAPIURL, token, "")
Expand Down

0 comments on commit 7564d3f

Please sign in to comment.