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
This commit is contained in:
Huakun Shen 2024-11-05 09:27:52 -05:00 committed by GitHub
parent 2c99f231f7
commit 605a7844f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 422 additions and 78 deletions

View file

@ -1,10 +1,9 @@
import { ExtPackageJson } from "@kksh/api/models"
import { type Database } from "@kksh/supabase"
import { createClient } from "@supabase/supabase-js"
import { createSB } from "@kksh/supabase"
import { parse, string } from "valibot"
import { getJsonSchema } from "../src"
const supabase = createClient<Database>(
const supabase = createSB(
parse(string(), process.env.SUPABASE_URL),
parse(string(), process.env.SUPABASE_SERVICE_ROLE_KEY)
)