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

Method RevokeRefreshToken

internal/oauth/storage.go:465–472  ·  view source on GitHub ↗

───────────────────────── TokenRevocationStorage ─────────────────────────

(ctx context.Context, requestID string)

Source from the content-addressed store, hash-verified

463// ───────────────────────── TokenRevocationStorage ─────────────────────────
464
465func (s *Storage) RevokeRefreshToken(ctx context.Context, requestID string) error {
466 _, err := s.db(ctx).Exec(ctx, `
467 UPDATE oauth_refresh_tokens
468 SET revoked_at = NOW(), active = FALSE
469 WHERE request_id = $1 AND revoked_at IS NULL
470 `, requestID)
471 return err
472}
473
474func (s *Storage) RevokeAccessToken(ctx context.Context, requestID string) error {
475 _, err := s.db(ctx).Exec(ctx, `

Callers

nothing calls this directly

Calls 2

dbMethod · 0.95
ExecMethod · 0.65

Tested by

no test coverage detected