From 6016907d0ebc5981884145beb0c8fe6da593f5cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Sun, 24 Jan 2021 10:14:33 +0900 Subject: [PATCH] feat: added Ouath function --- utils/Constants.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/Constants.ts b/utils/Constants.ts index e014c0d..019c934 100644 --- a/utils/Constants.ts +++ b/utils/Constants.ts @@ -1,4 +1,4 @@ -import { ImageOptions } from '../types' +import { ImageOptions } from '@types' import { makeImageURL } from './Tools' export const Status = { @@ -104,6 +104,9 @@ export const DiscordEnpoints = { } } +export const Oauth = { + discord: (clientID: string, scope: string) => `https://discord.com/oauth2/authorize?client_id=${clientID}&scope=${scope}&permissions=0&response_type=code&redirect_uri=${process.env.KOREANBOTS_URL}/api/auth/discord/callback&prompt=none` +} export const git = { 'github.com': { icon: 'github', text: 'Github' }, 'gitlab.com': { icon: 'gitlab', text: 'Gitlab' }} export const ErrorText = {