Skip to content

Commit

Permalink
fix: ignore not found error to check for pkce prefix later (#1929)
Browse files Browse the repository at this point in the history
  • Loading branch information
kangmingtay authored Jan 30, 2025
1 parent 338a14c commit fbbebcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/models/one_time_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func FindUserByEmailChangeToken(tx *storage.Connection, token string) (*User, er
// FindUserByEmailChangeCurrentAndAudience finds a user with the matching email change and audience.
func FindUserByEmailChangeCurrentAndAudience(tx *storage.Connection, email, token, aud string) (*User, error) {
ott, err := FindOneTimeToken(tx, token, EmailChangeTokenCurrent)
if err != nil {
if err != nil && !IsNotFoundError(err) {
return nil, err
}

Expand Down

0 comments on commit fbbebcc

Please sign in to comment.