Skip to content

Commit

Permalink
Fix: API Server panics with invalid bearer token format
Browse files Browse the repository at this point in the history
  • Loading branch information
sayan-biswas committed Mar 30, 2023
1 parent ffe0be3 commit cc7e9eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ func determineAuth(ctx context.Context) (context.Context, error) {
ctxzap.AddFields(ctx,
zap.String("grpc.user", "unknown"),
)
return ctx, nil
}

if claims, ok := token.Claims.(jwt.MapClaims); ok {
Expand Down

0 comments on commit cc7e9eb

Please sign in to comment.