MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / DeleteUserSession

Method DeleteUserSession

internal/identity/store.go:3149–3152  ·  view source on GitHub ↗
(ctx context.Context, token string)

Source from the content-addressed store, hash-verified

3147}
3148
3149func (s *Store) DeleteUserSession(ctx context.Context, token string) error {
3150 _, err := s.pool.Exec(ctx, `DELETE FROM user_sessions WHERE token = $1`, token)
3151 return err
3152}
3153
3154func (s *Store) DeleteExpiredUserSessions(ctx context.Context) (int64, error) {
3155 tag, err := s.pool.Exec(ctx, `DELETE FROM user_sessions WHERE expires_at <= now()`)

Callers 1

HandleLogoutMethod · 0.80

Implementers 1

Storeinternal/identity/store.go

Calls 1

ExecMethod · 0.65

Tested by

no test coverage detected