kaneo (minimalist kanban) fork to experiment adding a tangled integration github.com/usekaneo/kaneo
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 39e2dfae265f26c8d6d888a560f50ab2d5d58b3f 24 lines 861 B view raw
1/** 2 * GitHub "Sign in with GitHub" uses OAuth client credentials. 3 * Prefer `GITHUB_OAUTH_*` so GitHub App integration env vars can be set 4 * without implicitly enabling SSO. Legacy `GITHUB_CLIENT_*` is still supported. 5 */ 6export function getGithubSsoOAuthCredentials(): { 7 clientId: string; 8 clientSecret: string; 9} { 10 const oauthId = process.env.GITHUB_OAUTH_CLIENT_ID?.trim(); 11 const oauthSecret = process.env.GITHUB_OAUTH_CLIENT_SECRET?.trim(); 12 if (oauthId && oauthSecret) { 13 return { clientId: oauthId, clientSecret: oauthSecret }; 14 } 15 return { 16 clientId: process.env.GITHUB_CLIENT_ID?.trim() || "", 17 clientSecret: process.env.GITHUB_CLIENT_SECRET?.trim() || "", 18 }; 19} 20 21export function isGithubSsoConfigured(): boolean { 22 const { clientId, clientSecret } = getGithubSsoOAuthCredentials(); 23 return Boolean(clientId && clientSecret); 24}