Skip to content

Commit 70a2754

Browse files
committed
fix: move oauth config file
1 parent 38a7f10 commit 70a2754

File tree

6 files changed

+7
-6
lines changed

6 files changed

+7
-6
lines changed

src/features/auth/OAuthLogin.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
OAUTH_PROVIDERS,
1616
OAUTH_PROVIDERS_ENABLED_ARRAY,
1717
OAuthProvider,
18-
} from '@/lib/oauth/config';
18+
} from '@/features/auth/oauth-config';
1919
import { trpc } from '@/lib/trpc/client';
2020

2121
export const OAuthLoginButton = ({

src/features/auth/PageOAuthCallback.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import { LoaderFull } from '@/components/LoaderFull';
1313
import { useToastError } from '@/components/Toast';
1414
import { ROUTES_ADMIN } from '@/features/admin/routes';
1515
import { ROUTES_APP } from '@/features/app/routes';
16+
import { zOAuthProvider } from '@/features/auth/oauth-config';
1617
import { ROUTES_AUTH } from '@/features/auth/routes';
17-
import { zOAuthProvider } from '@/lib/oauth/config';
1818
import { trpc } from '@/lib/trpc/client';
1919

2020
export default function PageOAuthCallback() {
File renamed without changes.

src/server/config/oauth/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { match } from 'ts-pattern';
22

3-
import { OAuthProvider } from '@/lib/oauth/config';
3+
import { OAuthProvider } from '@/features/auth/oauth-config';
44
import { discord } from '@/server/config/oauth/providers/discord';
55
import { github } from '@/server/config/oauth/providers/github';
66
import { google } from '@/server/config/oauth/providers/google';

src/server/config/oauth/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { env } from '@/env.mjs';
2-
import { OAuthProvider } from '@/lib/oauth/config';
2+
import { OAuthProvider } from '@/features/auth/oauth-config';
33
import { AppContext } from '@/server/config/trpc';
44

55
export type OAuthClient = {

src/server/routers/oauth.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { z } from 'zod';
77

88
import { env } from '@/env.mjs';
99
import { zUserAccount } from '@/features/account/schemas';
10+
import { OAUTH_PROVIDERS, zOAuthProvider } from '@/features/auth/oauth-config';
1011
import { DEFAULT_LANGUAGE_KEY } from '@/lib/i18n/constants';
11-
import { OAUTH_PROVIDERS, zOAuthProvider } from '@/lib/oauth/config';
1212
import locales from '@/locales';
1313
import { createSession } from '@/server/config/auth';
1414
import { oAuthProvider } from '@/server/config/oauth';
@@ -179,7 +179,8 @@ export const oauthRouter = createTRPCRouter({
179179
ctx.logger.info('Account is disabled');
180180
throw new TRPCError({
181181
code: 'UNAUTHORIZED',
182-
message: 'Unable to authenticate. Please contact support if this issue persists.',
182+
message:
183+
'Unable to authenticate. Please contact support if this issue persists.',
183184
});
184185
}
185186

0 commit comments

Comments
 (0)