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
| 15 | // This implementation is thread-safe and suitable for single-instance applications |
| 16 | // For distributed systems, consider using Redis or database-based implementations |
| 17 | type InMemoryRefreshTokenStore struct { |
| 18 | tokens map[string]*core.RefreshTokenData |
| 19 | mu sync.RWMutex |
| 20 | } |
| 21 | |
| 22 | // NewInMemoryRefreshTokenStore creates a new in-memory refresh token store |
| 23 | func NewInMemoryRefreshTokenStore() *InMemoryRefreshTokenStore { |
nothing calls this directly
no outgoing calls
no test coverage detected