Home / Function/ isInviteExpired() — supabase Function Reference

isInviteExpired() — supabase Function Reference

Architecture documentation for the isInviteExpired() function in Organization.utils.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  f4cd1ea0_5cbb_b2ad_dde0_e32fe0bbd9b9["isInviteExpired()"]
  5a8b6d8e_f623_2e9e_0fd0_78e9ed45b429["MemberRow()"]
  5a8b6d8e_f623_2e9e_0fd0_78e9ed45b429 -->|calls| f4cd1ea0_5cbb_b2ad_dde0_e32fe0bbd9b9
  style f4cd1ea0_5cbb_b2ad_dde0_e32fe0bbd9b9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/Organization/Organization.utils.ts lines 2–10

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
}

Subdomains

Called By

Frequently Asked Questions

What does isInviteExpired() do?
isInviteExpired() is a function in the supabase codebase.
What calls isInviteExpired()?
isInviteExpired() is called by 1 function(s): MemberRow.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free