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

Method Count

store/memory.go:109–114  ·  view source on GitHub ↗

Count returns the total number of active refresh tokens

(ctx context.Context)

Source from the content-addressed store, hash-verified

107
108// Count returns the total number of active refresh tokens
109func (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

Calls

no outgoing calls