DeleteServiceAuthToken deletes a service auth token.
(ctx context.Context, id string)
| 1522 | |
| 1523 | // DeleteServiceAuthToken deletes a service auth token. |
| 1524 | func (c *connection) DeleteServiceAuthToken(ctx context.Context, id string) error { |
| 1525 | res, err := c.getDB(ctx).ExecContext(ctx, "DELETE FROM service_auth_tokens WHERE id=$1", id) |
| 1526 | return checkDeleteRow("service auth token", res, err) |
| 1527 | } |
| 1528 | |
| 1529 | // DeleteExpiredServiceAuthTokens deletes expired service auth tokens. |
| 1530 | func (c *connection) DeleteExpiredServiceAuthTokens(ctx context.Context, retention time.Duration) error { |
nothing calls this directly
no test coverage detected