Home / Function/ getAction() — supabase Function Reference

getAction() — supabase Function Reference

Architecture documentation for the getAction() function in AccessToken.constants.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  9282654a_291c_dbb0_907a_074fd7ba1734["getAction()"]
  3e732b74_4698_5293_2916_faf61bc26ab4["buildPermissionList()"]
  3e732b74_4698_5293_2916_faf61bc26ab4 -->|calls| 9282654a_291c_dbb0_907a_074fd7ba1734
  style 9282654a_291c_dbb0_907a_074fd7ba1734 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/Account/AccessTokens/AccessToken.constants.ts lines 21–27

const getAction = (key: string): string => {
  if (key.endsWith('_READ')) return 'read'
  if (key.endsWith('_WRITE')) return 'write'
  if (key.endsWith('_CREATE')) return 'create'
  if (key.endsWith('_DELETE')) return 'delete'
  return 'read'
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free