Skip to content

Commit

Permalink
chore: add fallback error
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Nov 13, 2023
1 parent 7a9425f commit 6035910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfservice/strategy/oidc/token_verifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
func verifyToken(ctx context.Context, keySet oidc.KeySet, config *Configuration, rawIDToken, issuerURL string) (*Claims, error) {
tokenAudiences := append([]string{config.ClientID}, config.AdditionalIDTokenAudiences...)
var token *oidc.IDToken
var err error
err := fmt.Errorf("no audience matched the token's audience")
for _, aud := range tokenAudiences {
verifier := oidc.NewVerifier(issuerURL, keySet, &oidc.Config{
ClientID: aud,
Expand Down

0 comments on commit 6035910

Please sign in to comment.