Skip to content

Authorize Mastra cloud user for using the agent #10397

@daneatmastra

Description

@daneatmastra

This issue was created from Discord post 1441423333655707740:

Open in Discord

Hi, I have setup Mastra auth by extending MastraAuthProvider, so now Mastra cloud can not access my Mastra agents.
What's the best way to authorize Mastra cloud user?

config.server!.auth = new FrontofficeMastraJwtAuth({
    protected: ['/api/*'],
    public: process.env.MASTRA_DEV === 'true' ? [/^\/(?!api)/] : [],
  });

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions