From b8df52f58bd28b8c168f27baf33ff4f59f96baa8 Mon Sep 17 00:00:00 2001 From: aeneasr <3372410+aeneasr@users.noreply.github.com> Date: Thu, 28 Nov 2024 11:54:13 +0100 Subject: [PATCH] chore: synchronize workspaces --- handler/oauth2/flow_refresh.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handler/oauth2/flow_refresh.go b/handler/oauth2/flow_refresh.go index 5bf68070..789f8d63 100644 --- a/handler/oauth2/flow_refresh.go +++ b/handler/oauth2/flow_refresh.go @@ -221,12 +221,14 @@ func (c *RefreshTokenGrantHandler) handleRefreshTokenEndpointStorageError(ctx co if errors.Is(storageErr, fosite.ErrSerializationFailure) { return errorsx.WithStack(fosite.ErrInvalidRequest. WithDebugf(storageErr.Error()). + WithWrap(storageErr). WithHint("Failed to refresh token because of multiple concurrent requests using the same token which is not allowed.")) } if errors.Is(storageErr, fosite.ErrNotFound) || errors.Is(storageErr, fosite.ErrInactiveToken) { return errorsx.WithStack(fosite.ErrInvalidRequest. WithDebugf(storageErr.Error()). + WithWrap(storageErr). WithHint("Failed to refresh token because of multiple concurrent requests using the same token which is not allowed.")) }