feat: initial auth config
This commit is contained in:
22
convex/auth.config.ts
Normal file
22
convex/auth.config.ts
Normal 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
|
Reference in New Issue
Block a user