Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
admpub committed Oct 11, 2024
1 parent 361a181 commit eca5cd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler/oauth2/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ var CompleteUserAuth = func(ctx echo.Context) (goth.User, error) {

// validateState ensures that the state token param from the original
// AuthURL matches the one included in the current (callback) request.
func validateState(ctx echo.Context, sess goth.Session) error {
func validateState(ctx echo.Context, _ goth.Session) error {
originalState, ok := ctx.Session().Get(StateSessionName).(string)
if !ok || len(originalState) == 0 || originalState != GetState(ctx) {
return ErrStateTokenMismatch
Expand Down

0 comments on commit eca5cd6

Please sign in to comment.