revokeGrant method
- String grantId
Soft-revoke a grant. The row stays in the table for audit; entitlement
resolution ignores it once revoked_at is non-null.
Implementation
Future<void> revokeGrant(String grantId) async {
await _client
.from('admin_grants')
.update({
'revoked_at': DateTime.now().toUtc().toIso8601String(),
'revoked_by': _client.auth.currentUser?.id,
})
.eq('id', grantId);
}