콘텐츠로 이동

@studiocms/google

이 콘텐츠는 아직 번역되지 않았습니다.

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>