0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-20 21:32:31 -05:00
logto/packages/connector-github/src/constant.ts

27 lines
889 B
TypeScript

import { ConnectorMetadata, ConnectorType, ConnectorPlatform } from '@logto/connector-types';
export const authorizationEndpoint = 'https://github.com/login/oauth/authorize';
export const scope = 'read:user';
export const accessTokenEndpoint = 'https://github.com/login/oauth/access_token';
export const userInfoEndpoint = 'https://api.github.com/user';
export const defaultMetadata: ConnectorMetadata = {
id: 'github-universal',
target: 'github',
type: ConnectorType.Social,
platform: ConnectorPlatform.Universal,
name: {
en: 'GitHub',
'zh-CN': 'GitHub',
},
logo: './logo.svg',
logoDark: './logo-dark.svg',
description: {
en: 'Make signing into Logto seamlessly for GitHub users.',
'zh-CN': '让 GitHub 用户无缝登录 Logto。',
},
readme: './README.md',
configTemplate: './docs/config-template.json',
};
export const defaultTimeout = 5000;