Zum Inhalt springen

@studiocms/github

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

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)

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