Skip to content

Commit

Permalink
move err to standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
akiioto committed Oct 24, 2024
1 parent b8d5a27 commit e6fc4bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/oidc/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,8 @@ func (tokenProcessor *TokenProcessor) VerifyAndExtractClaims(ctx context.Context
} else {
return fmt.Errorf("token expired more than %v ago: %w", gracePeriod, err)
}
} else if err != nil {
}
if err != nil {
return fmt.Errorf("failed to verify token: %w", err)
}

Expand Down

0 comments on commit e6fc4bf

Please sign in to comment.