getExpirationDate() — supabase Function Reference
Architecture documentation for the getExpirationDate() function in AccessToken.utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD d0619346_3801_c66f_f84d_dfd227ead1e1["getExpirationDate()"] 53954858_3721_07b4_3010_eeeb1745521c["NewTokenDialog()"] 53954858_3721_07b4_3010_eeeb1745521c -->|calls| d0619346_3801_c66f_f84d_dfd227ead1e1 871e24a9_af4f_d982_ab63_afb529f14e75["NewScopedTokenSheet()"] 871e24a9_af4f_d982_ab63_afb529f14e75 -->|calls| d0619346_3801_c66f_f84d_dfd227ead1e1 style d0619346_3801_c66f_f84d_dfd227ead1e1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/interfaces/Account/AccessTokens/AccessToken.utils.ts lines 133–148
export const getExpirationDate = (key: string): string | undefined => {
switch (key) {
case 'hour':
return dayjs().add(1, 'hours').toISOString()
case 'day':
return dayjs().add(1, 'day').toISOString()
case 'week':
return dayjs().add(7, 'days').toISOString()
case 'month':
return dayjs().add(30, 'days').toISOString()
case 'never':
return undefined
default:
return undefined
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getExpirationDate() do?
getExpirationDate() is a function in the supabase codebase.
What calls getExpirationDate()?
getExpirationDate() is called by 2 function(s): NewScopedTokenSheet, NewTokenDialog.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free