0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00
logto/packages/connectors/connector-naver/src/constant.ts
Gao Sun 6b322a537c
refactor: add connector packages
the initial commit to move all connector packages to the main
repo.
2023-04-01 15:53:14 +08:00

45 lines
1.4 KiB
TypeScript

import type { ConnectorMetadata } from '@logto/connector-kit';
import { ConnectorPlatform, ConnectorConfigFormItemType } from '@logto/connector-kit';
export const authorizationEndpoint = 'https://nid.naver.com/oauth2.0/authorize';
export const accessTokenEndpoint = 'https://nid.naver.com/oauth2.0/token';
export const userInfoEndpoint = 'https://openapi.naver.com/v1/nid/me';
export const defaultMetadata: ConnectorMetadata = {
id: 'naver-universal',
target: 'naver',
platform: ConnectorPlatform.Universal,
name: {
en: 'Naver',
'zh-CN': 'Naver',
'tr-TR': 'Naver',
ko: '네이버',
},
logo: './logo.svg',
logoDark: null,
description: {
en: 'Naver is the most leading internet service provider in South Korea',
'zh-CN': 'Naver is the most leading internet service provider in South Korea',
'tr-TR': 'Naver is the most leading internet service provider in South Korea',
ko: '네이버는 한국에서 가장 선도적인 인터넷 서비스 제공자 입니다.',
},
readme: './README.md',
formItems: [
{
key: 'clientId',
type: ConnectorConfigFormItemType.Text,
required: true,
label: 'Client ID',
placeholder: '<client-id>',
},
{
key: 'clientSecret',
type: ConnectorConfigFormItemType.Text,
required: true,
label: 'Client Secret',
placeholder: '<client-secret>',
},
],
};
export const defaultTimeout = 5000;