GetSessions retrieves all sessions.
(ctx context.Context)
| 482 | |
| 483 | // GetSessions retrieves all sessions. |
| 484 | func (sm *SessionManager) GetSessions(ctx context.Context) ([]*session.Session, error) { |
| 485 | sessions, err := sm.sessionStore.GetSessions(ctx) |
| 486 | if err != nil { |
| 487 | return nil, err |
| 488 | } |
| 489 | return sessions, nil |
| 490 | } |
| 491 | |
| 492 | // DeleteSession deletes a session by ID. It cancels the runtime context and |
| 493 | // removes the session from all registries. Callers that need to wait for |
nothing calls this directly
no test coverage detected