Skip to content

TODO: Rename anonKey to supabaseKey Across Codebase #12

@Waffle0823

Description

@Waffle0823

Goal

Improve naming clarity by renaming anonKey to supabaseKey, reflecting its broader usage beyond just anonymous access.

Tasks

[ ] Replace all occurrences of anonKey with supabaseKey in the codebase.

[ ] Update TypeScript types, interfaces, and generics to use supabaseKey.

[ ] Refactor environment variable usage (e.g. SUPABASE_ANON_KEY → SUPABASE_KEY if applicable).

[ ] Ensure createClient and related initialization functions accept supabaseKey.

[ ] Maintain backward compatibility (optional alias or deprecation warning for anonKey).

[ ] Update unit tests to reflect the new naming.

[ ] Verify no breaking changes in authentication or client usage.

[ ] Update documentation and examples with the new supabaseKey naming.

Example

const supabase = createClient(
process.env.SUPABASE_URL!,
process.env.SUPABASE_KEY! // renamed from SUPABASE_ANON_KEY
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions