Skip to content

Commit

Permalink
clients/web: remove Discord app connection from user settings
Browse files Browse the repository at this point in the history
  • Loading branch information
frankie567 committed Dec 16, 2024
1 parent fa35319 commit ca27097
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 164 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import AccessTokensSettings from '@/components/Settings/AccessTokensSettings'
import AuthenticationSettings from '@/components/Settings/AuthenticationSettings'
import ConnectedAppSettings from '@/components/Settings/ConnectedAppSettings'
import GeneralSettings from '@/components/Settings/GeneralSettings'
import OAuthSettings from '@/components/Settings/OAuth/OAuthSettings'
import PaymentMethodSettings from '@/components/Settings/PaymentMethodSettings'
Expand All @@ -25,14 +24,6 @@ export default function Page() {
<PaymentMethodSettings />
</Section>

<Section>
<SectionDescription
title="Connected Apps"
description="Manage connection to apps"
/>
<ConnectedAppSettings />
</Section>

<Section>
<SectionDescription
title="Signin connections"
Expand Down
143 changes: 0 additions & 143 deletions clients/apps/web/src/components/Settings/ConnectedAppSettings.tsx

This file was deleted.

13 changes: 1 addition & 12 deletions clients/apps/web/src/utils/auth.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import { getServerURL } from '@/utils/api'
import {
IntegrationsDiscordApiIntegrationsDiscordBotAuthorizeRequest,
IntegrationsDiscordApiIntegrationsDiscordUserAuthorizeRequest,
IntegrationsGithubApiIntegrationsGithubAuthorizeRequest,
IntegrationsGithubApiRedirectToOrganizationInstallationRequest,
IntegrationsGithubRepositoryBenefitApiIntegrationsGithubRepositoryBenefitUserAuthorizeRequest,
IntegrationsGoogleApiIntegrationsGoogleAuthorizeRequest,
MagicLinkApiMagicLinkAuthenticateRequest
MagicLinkApiMagicLinkAuthenticateRequest,
} from '@polar-sh/sdk'

export const getGitHubAuthorizeURL = (
Expand Down Expand Up @@ -60,16 +59,6 @@ export const getMagicLinkAuthenticateURL = (
return `${getServerURL()}/v1/magic_link/authenticate?${searchParams}`
}

export const getUserDiscordAuthorizeURL = (
params: IntegrationsDiscordApiIntegrationsDiscordUserAuthorizeRequest,
): string => {
const searchParams = new URLSearchParams()
if (params.returnTo !== undefined) {
searchParams.set('return_to', params.returnTo)
}
return `${getServerURL()}/v1/integrations/discord/user/authorize?${searchParams}`
}

export const getBotDiscordAuthorizeURL = (
params: IntegrationsDiscordApiIntegrationsDiscordBotAuthorizeRequest,
): string => {
Expand Down

0 comments on commit ca27097

Please sign in to comment.