import { createDiscordOAuthConfig, createHelpers } from '@deno/kv-oauth'
import { env } from '../../../env.ts'
// Discord OAuth configuration for bot authorization
// This authorizes the bot to join and operate in Discord servers
const oauthConfig = createDiscordOAuthConfig({
redirectUri: [env.BASE_URL, '/oauth/discord/callback'].join(''),
scope: ['bot', 'applications.commands'], // Bot permissions
})
export const discordOAuthHelpers = createHelpers(oauthConfig)
export { oauthConfig as discordOAuthConfig }
import { createDiscordOAuthConfig, createHelpers } from '@deno/kv-oauth'
import { env } from '../../../env.ts'
// Discord OAuth configuration for bot authorization
// This authorizes the bot to join and operate in Discord servers
const oauthConfig = createDiscordOAuthConfig({
redirectUri: [env.BASE_URL, '/oauth/discord/callback'].join(''),
scope: ['bot', 'applications.commands'], // Bot permissions
})
export const discordOAuthHelpers = createHelpers(oauthConfig)
export { oauthConfig as discordOAuthConfig }