Huakun Shen 605a7844f2
Feature: Deep Link + Supabase OAuth + open extension in store with deep link (#16)
* feat(auth): add deep link and supabase auth

* fix(deep-link): fix some routing and reactive page rendering

* feat: implement supabase auth with pkce auth flow
2024-11-05 09:27:52 -05:00

15 lines
432 B
TypeScript

import type { Database } from "@kksh/api/supabase/types"
import { createClient } from "@supabase/supabase-js"
export function createSB(supabaseUrl: string, supabaseAnonKey: string) {
return createClient<Database>(supabaseUrl, supabaseAnonKey, {
auth: {
flowType: "pkce"
}
})
}
export { SupabaseAPI } from "./api"
export type { Database, Tables } from "@kksh/api/supabase/types"
export { SBExt } from "@kksh/api/supabase"