MCPcopy
hub / github.com/appleboy/gin-jwt / Set

Method Set

core/store.go:22–22  ·  view source on GitHub ↗

Set stores a refresh token with associated user data and expiration Returns an error if the operation fails

(ctx context.Context, token string, userData any, expiry time.Time)

Source from the content-addressed store, hash-verified

20 // Set stores a refresh token with associated user data and expiration
21 // Returns an error if the operation fails
22 Set(ctx context.Context, token string, userData any, expiry time.Time) error
23
24 // Get retrieves user data associated with a refresh token
25 // Returns ErrRefreshTokenNotFound if token doesn't exist or is expired

Callers 15

middlewareImplMethod · 0.65
LogoutHandlerMethod · 0.65
storeRefreshTokenMethod · 0.65
ParseTokenMethod · 0.65
testLoginAndRefreshFlowFunction · 0.65
testRedisStoreOperationsFunction · 0.65
testBasicOperationsFunction · 0.65
testExpirationFunction · 0.65
testCleanupFunction · 0.65
testCountFunction · 0.65

Implementers 2

Calls

no outgoing calls

Tested by 9

testLoginAndRefreshFlowFunction · 0.52
testRedisStoreOperationsFunction · 0.52
testBasicOperationsFunction · 0.52
testExpirationFunction · 0.52
testCleanupFunction · 0.52
testCountFunction · 0.52
testClientSideCacheFunction · 0.52