RevokeByID revokes a session by ID.
(ctx context.Context, id, userID string)
| 196 | |
| 197 | // RevokeByID revokes a session by ID. |
| 198 | func (s *SessionsStore) RevokeByID(ctx context.Context, id, userID string) error { |
| 199 | d := s.db.DB(ctx) |
| 200 | return d.Queries.RevokeSessionByID(ctx, db.RevokeSessionByIDParams{ID: id, UserID: userID}) |
| 201 | } |
| 202 | |
| 203 | // RevokeAllForUser revokes all sessions for a user except the given session ID. |
| 204 | func (s *SessionsStore) RevokeAllForUser(ctx context.Context, userID, exceptSessionID string) error { |
no test coverage detected