mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-20 05:29:17 +00:00

* 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
15 lines
432 B
TypeScript
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"
|