Home / Function/ hasActiveDeletionRequest() — supabase Function Reference

hasActiveDeletionRequest() — supabase Function Reference

Architecture documentation for the hasActiveDeletionRequest() function in DeleteAccountButton.tsx from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  eeab8161_a8e8_32a0_3af7_abc8c3f8c9a7["hasActiveDeletionRequest()"]
  2e4966ba_469e_4447_510a_d4b18a16799d["DeleteAccountButton()"]
  2e4966ba_469e_4447_510a_d4b18a16799d -->|calls| eeab8161_a8e8_32a0_3af7_abc8c3f8c9a7
  style eeab8161_a8e8_32a0_3af7_abc8c3f8c9a7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/Account/Preferences/DeleteAccountButton.tsx lines 38–51

const hasActiveDeletionRequest = () => {
  const expiryDateStr = localStorage.getItem(LOCAL_STORAGE_KEYS.ACCOUNT_DELETION_REQUEST)
  if (!expiryDateStr) return false

  const expiryDate = new Date(expiryDateStr)
  const now = new Date()

  if (now > expiryDate) {
    localStorage.removeItem(LOCAL_STORAGE_KEYS.ACCOUNT_DELETION_REQUEST)
    return false
  }

  return true
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free