mirror of
https://github.com/supabase/supabase.git
synced 2026-10-13 13:19:09 +03:00
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? feature ## Additional context Adds a feature flagged UI for toggling JIT based access to a project's database and managing permissions/access --------- Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com> Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
13 lines
418 B
TypeScript
13 lines
418 B
TypeScript
import type { JitExpiryMode } from './JitDbAccess.types'
|
|
|
|
export const JIT_EXPIRY_MODE_OPTIONS: Array<{ value: JitExpiryMode; label: string }> = [
|
|
{ value: '1h', label: '1 hour' },
|
|
{ value: '1d', label: '1 day' },
|
|
{ value: '7d', label: '7 days' },
|
|
{ value: '30d', label: '30 days' },
|
|
{ value: 'custom', label: 'Custom' },
|
|
{ value: 'never', label: 'Never' },
|
|
]
|
|
|
|
export const JIT_MAX_CUSTOM_EXPIRY_YEARS = 1
|