@mastra/auth-google
v0.1.5
Published
Mastra Google Workspace Auth integration
Keywords
Readme
@mastra/auth-google
@mastra/auth-google authenticates Google Workspace users and supports authorization based on hosted domains and Workspace identity. Use it when employees should sign in to Mastra with their existing Google organization accounts.
Installation
npm install @mastra/auth-googleUsage
Set GOOGLE_CLIENT_ID before starting Mastra.
import { MastraAuthGoogle } from '@mastra/auth-google';
import { Mastra } from '@mastra/core/mastra';
export const mastra = new Mastra({
server: {
auth: new MastraAuthGoogle({
clientId: process.env.GOOGLE_CLIENT_ID,
allowedDomains: ['example.com'],
}),
},
});Documentation
Changelog
See the package changelog for version history and release notes.
Support
We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.
