Package Exports
- @studiocms/github
Readme
@studiocms/github Plugin
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.
Usage
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
CMS_GITHUB_CLIENT_IDCMS_GITHUB_CLIENT_SECRETCMS_GITHUB_REDIRECT_URI