RevokeAPIKey revokes an API key if it belongs to the specified owner Parameters: - ctx: The context for the operation - id: ID of the API key to revoke - ownerID: ID of the key owner Returns: - error: An error if the operation fails
(ctx context.Context, id, ownerID string)
| 46 | // Returns: |
| 47 | // - error: An error if the operation fails |
| 48 | func (l *LedgerForge) RevokeAPIKey(ctx context.Context, id, ownerID string) error { |
| 49 | return l.datasource.RevokeAPIKey(ctx, id, ownerID) |
| 50 | } |
| 51 | |
| 52 | // GetAPIKeyByKey retrieves an API key by its key string |
| 53 | // |