@studiocms/github
이 콘텐츠는 아직 번역되지 않았습니다.
This plugin integrates GitHub as an OAuth authentication provider for StudioCMS. It sets up the necessary authentication service, including the provider’s name, endpoint paths and required environment variables.
Add this plugin in your StudioCMS config. (studiocms.config.mjs
)
import { defineStudioCMSConfig } from 'studiocms/config';import github from '@studiocms/github';
export default defineStudioCMSConfig({ // other options here plugins: [github()]});
Required ENV Variables
Section titled “Required ENV Variables”CMS_GITHUB_CLIENT_ID=<your-client-id>CMS_GITHUB_CLIENT_SECRET=<your-client-secret>CMS_GITHUB_REDIRECT_URI=<your-redirect-uri>