Zum Inhalt springen

@studiocms/google

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

This plugin integrates Google OAuth authentication into StudioCMS. It defines the necessary configuration, including the required environment variables, OAuth provider details, and the endpoint paths for authentication.

Add this plugin in your StudioCMS config. (studiocms.config.mjs)

studiocms.config.mjs
import { defineStudioCMSConfig } from 'studiocms/config';
import google from '@studiocms/google';
export default defineStudioCMSConfig({
// other options here
plugins: [google()]
});
.env
CMS_GOOGLE_CLIENT_ID=<your-client-id>
CMS_GOOGLE_CLIENT_SECRET=<your-client-secret>
CMS_GOOGLE_REDIRECT_URI=<your-redirect-uri>