We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b475524 commit 0c99888Copy full SHA for 0c99888
exchange/consent-engine/v1/models/consent.go
@@ -23,6 +23,7 @@ type ConsentRecord struct {
23
UpdatedAt time.Time `json:"updated_at"`
24
// ExpiresAt is the timestamp when the consent expires
25
// Calculated by adding GrantDuration to the current time when consent is approved/denied
26
+ // To check if consent has expired: compare ExpiresAt < current_time
27
ExpiresAt time.Time `json:"expires_at"`
28
// GrantDuration is the duration to add to current time when approving/denying consent (e.g., "P30D", "1h")
29
// Used to calculate ExpiresAt: ExpiresAt = current_time + GrantDuration
0 commit comments