Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
CalvinWilkinson committed Apr 3, 2024
1 parent 811f3e8 commit 7059ee2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions routes/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ type AuthResult = {

export const handler: Handlers = {
async GET(req, ctx): Promise<Response> {
const url = Deno.env.get("SUPABASE_URL_DEV") ?? "";
const anonKey = Deno.env.get("SUPABASE_ANON_KEY_DEV") ?? "";
const url = Deno.env.get("SUPABASE_URL_KEY") ?? "";
const anonKey = Deno.env.get("SUPABASE_ANON_KEY") ?? "";

if (url === "" || anonKey === "") {
const errorMsg = `Server config error: The SUPABASE_URL and/or SUPABASE_ANON_KEY environment variables are not set.`;
Expand All @@ -22,8 +22,8 @@ export const handler: Handlers = {
return ctx.render();
},
async POST(req, ctx): Promise<Response> {
const url = Deno.env.get("SUPABASE_URL_DEV") ?? "";
const anonKey = Deno.env.get("SUPABASE_ANON_KEY_DEV") ?? "";
const url = Deno.env.get("SUPABASE_URL_KEY") ?? "";
const anonKey = Deno.env.get("SUPABASE_ANON_KEY") ?? "";

const supabase = createServerClient(url, anonKey, {
auth: {
Expand Down

0 comments on commit 7059ee2

Please sign in to comment.