feat(auth): Update the authentication UI (#153)

We added a new Auth UI, with all the business logic to handle profiles and such... it works alright
This commit is contained in:
Wanjohi
2025-01-07 23:58:27 +03:00
committed by GitHub
parent 56b877fa27
commit f6287ef586
28 changed files with 2639 additions and 28 deletions

View File

@@ -27,7 +27,7 @@ export default component$(() => {
issuer: "https://auth.lauryn.dev.nestri.io"
})
const { url } = await client.authorize("http://localhost:5173/login", "token", { pkce: true })
const { url } = await client.authorize("http://localhost:5173/login-test", "token", { pkce: true })
window.location.href = url
})

16
apps/www/sst-env.d.ts vendored
View File

@@ -21,6 +21,22 @@ declare module "sst" {
"CloudflareAuthKV": {
"type": "sst.cloudflare.Kv"
}
"DiscordClientID": {
"type": "sst.sst.Secret"
"value": string
}
"DiscordClientSecret": {
"type": "sst.sst.Secret"
"value": string
}
"GithubClientID": {
"type": "sst.sst.Secret"
"value": string
}
"GithubClientSecret": {
"type": "sst.sst.Secret"
"value": string
}
"InstantAdminToken": {
"type": "sst.sst.Secret"
"value": string