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
)
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
)