astro-sveltia-cms
Version:
Add Sveltia CMS admin dashboard and a custom OAuth backend to your Astro project
6 lines (4 loc) • 305 B
text/typescript
export const clientId = process.env.OAUTH_GITHUB_CLIENT_ID;
export const clientSecret = process.env.OAUTH_GITHUB_CLIENT_SECRET;
export const authUrl = `https://github.com/login/oauth/authorize?client_id=${clientId}&scope=repo,user`;
export const tokenUrl = "https://github.com/login/oauth/access_token";