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

Struct InMemoryRefreshTokenStore

store/memory.go:17–20  ·  view source on GitHub ↗

InMemoryRefreshTokenStore provides a simple in-memory refresh token store This implementation is thread-safe and suitable for single-instance applications For distributed systems, consider using Redis or database-based implementations

Source from the content-addressed store, hash-verified

15// This implementation is thread-safe and suitable for single-instance applications
16// For distributed systems, consider using Redis or database-based implementations
17type InMemoryRefreshTokenStore struct {
18 tokens map[string]*core.RefreshTokenData
19 mu sync.RWMutex
20}
21
22// NewInMemoryRefreshTokenStore creates a new in-memory refresh token store
23func NewInMemoryRefreshTokenStore() *InMemoryRefreshTokenStore {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected