mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-14 22:50:51 +00:00
feat: add managed profile Guardians
- Keep the ordinary invitation consent flow for a second Guardian\n- Clear managed Guardian expiry when the invitation is accepted
This commit is contained in:
1 parent
665f223dc4
commit
e5e3590ca3
2 files changed
+26
-1
No files matched your search
@@ -6036,7 +6036,10 @@ model AccountGrant {
|
||||
revokedBy AccountGrantRevoker? @map("revoked_by")
|
||||
|
||||
/// Optional lapse date. Checked live on every resolution, so an expired
|
||||
/// grant stops conferring access without anything having to sweep it.
|
||||
/// grant stops conferring access without anything having to sweep it. A
|
||||
/// managed-profile invitation may carry an expiry while awaiting consent;
|
||||
/// accepting its MANAGE grant clears this field because an active Guardian
|
||||
/// ends only through an explicit lifecycle transition.
|
||||
expiresAt DateTime? @map("expires_at")
|
||||
/// Refreshed fire-and-forget when the grant is exercised, the same posture
|
||||
/// as `ApiToken.lastUsedAt`. The owner's panel reads it to answer "is this
|
||||
|
||||
Reference in new issue
Block a user