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

@@ -30,7 +30,11 @@ export const auth = new sst.cloudflare.Worker("Auth", {
authFingerprintKey,
secret.InstantAdminToken,
secret.InstantAppId,
secret.LoopsApiKey
secret.LoopsApiKey,
secret.GithubClientID,
secret.GithubClientSecret,
secret.DiscordClientID,
secret.DiscordClientSecret,
],
handler: "./packages/functions/src/auth.ts",
url: true,
@@ -43,7 +47,7 @@ export const api = new sst.cloudflare.Worker("Api", {
authFingerprintKey,
secret.InstantAdminToken,
secret.InstantAppId,
secret.LoopsApiKey
secret.LoopsApiKey,
],
url: true,
handler: "./packages/functions/src/api/index.ts",

View File

@@ -1,7 +1,11 @@
export const secret = {
InstantAdminToken: new sst.Secret("InstantAdminToken"),
InstantAppId: new sst.Secret("InstantAppId"),
LoopsApiKey: new sst.Secret("LoopsApiKey")
LoopsApiKey: new sst.Secret("LoopsApiKey"),
GithubClientSecret: new sst.Secret("GithubClientSecret"),
GithubClientID: new sst.Secret("GithubClientID"),
DiscordClientSecret: new sst.Secret("DiscordClientSecret"),
DiscordClientID: new sst.Secret("DiscordClientID"),
};
export const allSecrets = Object.values(secret);