Skip to content

Commit

Permalink
fix: fix server error of handling refresh token reuse
Browse files Browse the repository at this point in the history
Signed-off-by: sawadashota <shota@sslife.tech>
  • Loading branch information
sawadashota authored and aeneasr committed Oct 5, 2022
1 parent e98c0d7 commit be949da
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 @@ -66,7 +66,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 be949da

Please sign in to comment.