Skip to content

Commit

Permalink
improved error message for invalid oauth state
Browse files Browse the repository at this point in the history
  • Loading branch information
LockedThread committed May 22, 2023
1 parent 8ec0de8 commit d0b1717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graph/schema.resolvers.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (r *queryResolver) Login(ctx context.Context, provider models.Provider, cod
}

if cookieHeader != state {
return nil, fmt.Errorf("invalid oauth state")
return nil, fmt.Errorf("invalid oauth state, cookieHeader='%s', state='%s'", cookieHeader, state)
}

// Using the OAuth code provided exchange the code for an access token
Expand Down

0 comments on commit d0b1717

Please sign in to comment.