Skip to content

Commit

Permalink
fix: fix server error of handling refresh token reuse (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
sawadashota authored Nov 16, 2022
1 parent 295d028 commit f52879d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handler/oauth2/flow_refresh.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (c *RefreshTokenGrantHandler) HandleTokenEndpointRequest(ctx context.Contex
if errors.Is(err, fosite.ErrInactiveToken) {
// Detected refresh token reuse
if rErr := c.handleRefreshTokenReuse(ctx, signature, originalRequest); rErr != nil {
return errorsx.WithStack(fosite.ErrServerError.WithWrap(rErr).WithDebug(rErr.Error()))
return errorsx.WithStack(rErr)
}

return errorsx.WithStack(fosite.ErrInactiveToken.WithWrap(err).WithDebug(err.Error()))
Expand Down

0 comments on commit f52879d

Please sign in to comment.