Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: SUPABASE_SERVICE_KEY missing letter #32

Merged
merged 1 commit into from
Apr 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .example.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
SUPABASE_URL=http://localhost:54321
SUPABSE_SERVICE_KEY=xxx
SUPABASE_SERVICE_KEY=xxx

STRIPE_SECRET_KEY=sk_test_xxx
STRIPE_WEBHOOK_SECRET=xxx
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The only variables you need are:

- `SUPABASE_ANON_KEY`
- `SUPABASE_URL`
- `SUPABSE_SERVICE_KEY`
- `SUPABASE_SERVICE_KEY`
- `STRIPE_SECRET_KEY`
- `STRIPE_WEBHOOK_SECRET`

Expand Down
2 changes: 1 addition & 1 deletion utils/supabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function createSupabaseClient(
// Required to bypass Row Level Security (RLS)
export const supabaseAdminClient = createClient<Database>(
Deno.env.get("SUPABASE_URL")!,
Deno.env.get("SUPABSE_SERVICE_KEY")!,
Deno.env.get("SUPABASE_SERVICE_KEY")!,
);

async function getCustomer(
Expand Down