feat: initial auth config

This commit is contained in:
2025-09-14 21:46:38 +00:00
parent c50482e27a
commit d06bd3b683
15 changed files with 626 additions and 100 deletions

22
convex/auth.config.ts Normal file
View File

@@ -0,0 +1,22 @@
const clientId = process.env.WORKOS_CLIENT_ID
const authConfig = {
providers: [
{
type: "customJwt",
issuer: `https://api.workos.com/`,
algorithm: "RS256",
jwks: `https://api.workos.com/sso/jwks/${clientId}`,
applicationID: clientId,
},
{
type: "customJwt",
issuer: `https://api.workos.com/user_management/${clientId}`,
algorithm: "RS256",
jwks: `https://api.workos.com/sso/jwks/${clientId}`,
applicationID: clientId,
},
],
}
export default authConfig