Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tiniscule committed Jan 14, 2024
2 parents e5a3863 + 49b3ac0 commit 46eee6e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { createSupabaseClient } from "../deps.ts";
import { Database } from "./types/supabase.ts";
import {createSupabaseClient} from "../deps.ts";
import {Database} from "../types/basejump-database.ts";

export default function(authToken: string) {
const supabase = createSupabaseClient<Database>(
Deno.env.get("SUPABASE_URL") as string,
Deno.env.get("SUPABASE_ANON_KEY") as string,
{
global: { headers: { Authorization: authToken } },
}
);
return supabase;
export default function (authToken: string) {
const supabase = createSupabaseClient<Database>(
Deno.env.get("SUPABASE_URL") as string,
Deno.env.get("SUPABASE_ANON_KEY") as string,
{
global: {headers: {Authorization: authToken}},
}
);
return supabase;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {createSupabaseClient} from "../deps.ts";
import {Database} from "./types/supabase.ts";
import {Database} from "../types/basejump-database.ts";

export default function () {
const supabase = createSupabaseClient<Database>(
Expand Down

0 comments on commit 46eee6e

Please sign in to comment.