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

Method Get

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

Get retrieves user data associated with a refresh token Returns ErrRefreshTokenNotFound if token doesn't exist or is expired

(ctx context.Context, token string)

Source from the content-addressed store, hash-verified

24 // Get retrieves user data associated with a refresh token
25 // Returns ErrRefreshTokenNotFound if token doesn't exist or is expired
26 Get(ctx context.Context, token string) (any, error)
27
28 // Delete removes a refresh token from storage
29 // Returns an error if the operation fails, but should not error if token doesn't exist

Callers 15

getRefreshTokenFromLoginFunction · 0.65
TestLoginHandlerFunction · 0.65
TestRefreshHandlerRS256Function · 0.65
TestRefreshHandlerFunction · 0.65
TestExpiredFieldFunction · 0.65
TestLogoutFunction · 0.65

Implementers 2

Calls

no outgoing calls

Tested by 15

getRefreshTokenFromLoginFunction · 0.52
TestLoginHandlerFunction · 0.52
TestRefreshHandlerRS256Function · 0.52
TestRefreshHandlerFunction · 0.52
TestExpiredFieldFunction · 0.52
TestLogoutFunction · 0.52