Skip to content

Commit

Permalink
Merge pull request #82 from KnightHacks/development
Browse files Browse the repository at this point in the history
 improved error message for invalid oauth state
  • Loading branch information
LockedThread committed May 22, 2023
2 parents 33c12be + d0b1717 commit 328b6c1
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 328b6c1

Please sign in to comment.