(ctx context.Context, token string)
| 3147 | } |
| 3148 | |
| 3149 | func (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 | |
| 3154 | func (s *Store) DeleteExpiredUserSessions(ctx context.Context) (int64, error) { |
| 3155 | tag, err := s.pool.Exec(ctx, `DELETE FROM user_sessions WHERE expires_at <= now()`) |
no test coverage detected