M
MastraAI6d ago
Zack

Using `MastraAuthClerk` breaks mastra cloud deployment

When you use MastraAuthClerk (https://mastra.ai/en/docs/auth/clerk) it breaks any deployment on mastra cloud because the health check fails.
server: {
timeout: 60000,
experimental_auth:
process.env.NODE_ENV !== "development"
? new MastraAuthClerk({
publishableKey: process.env.CLERK_SECRET_KEY,
secretKey: process.env.CLERK_SECRET_KEY,
jwksUri: process.env.CLERK_JWKS_URI,
})
: undefined,
},
server: {
timeout: 60000,
experimental_auth:
process.env.NODE_ENV !== "development"
? new MastraAuthClerk({
publishableKey: process.env.CLERK_SECRET_KEY,
secretKey: process.env.CLERK_SECRET_KEY,
jwksUri: process.env.CLERK_JWKS_URI,
})
: undefined,
},
MastraAuthClerk Class
Documentation for the MastraAuthClerk class, which authenticates Mastra applications using Clerk authentication.
No description
1 Reply

Did you find this page helpful?