Files
supabase/apps/studio/components/interfaces/Organization/Organization.utils.ts
Terry Sutton eb7f5bc363 Use email instead of username in org member list (#36122)
* Use email instead of username in org member list

* Minor clean up

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-06-03 13:14:35 +08:00

11 lines
299 B
TypeScript

// Invite is expired if older than 24hrs
export function isInviteExpired(timestamp: string) {
const inviteDate = new Date(timestamp)
const now = new Date()
const timeBetween = now.valueOf() - inviteDate.valueOf()
if (timeBetween / 1000 / 60 / 60 < 24) {
return false
}
return true
}