Count returns the total number of active refresh tokens
(ctx context.Context)
| 107 | |
| 108 | // Count returns the total number of active refresh tokens |
| 109 | func (s *InMemoryRefreshTokenStore) Count(ctx context.Context) (int, error) { |
| 110 | s.mu.RLock() |
| 111 | defer s.mu.RUnlock() |
| 112 | |
| 113 | return len(s.tokens), nil |
| 114 | } |
| 115 | |
| 116 | // GetAll returns all active tokens (for debugging/monitoring purposes) |
| 117 | // Note: This method is not part of the RefreshTokenStorer interface |
no outgoing calls