File tree Expand file tree Collapse file tree 6 files changed +7
-6
lines changed Expand file tree Collapse file tree 6 files changed +7
-6
lines changed Original file line number Diff line number Diff 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' ;
1919import { trpc } from '@/lib/trpc/client' ;
2020
2121export const OAuthLoginButton = ( {
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ import { LoaderFull } from '@/components/LoaderFull';
1313import { useToastError } from '@/components/Toast' ;
1414import { ROUTES_ADMIN } from '@/features/admin/routes' ;
1515import { ROUTES_APP } from '@/features/app/routes' ;
16+ import { zOAuthProvider } from '@/features/auth/oauth-config' ;
1617import { ROUTES_AUTH } from '@/features/auth/routes' ;
17- import { zOAuthProvider } from '@/lib/oauth/config' ;
1818import { trpc } from '@/lib/trpc/client' ;
1919
2020export default function PageOAuthCallback ( ) {
File renamed without changes.
Original file line number Diff line number Diff line change 11import { match } from 'ts-pattern' ;
22
3- import { OAuthProvider } from '@/lib/oauth/ config' ;
3+ import { OAuthProvider } from '@/features/auth/oauth- config' ;
44import { discord } from '@/server/config/oauth/providers/discord' ;
55import { github } from '@/server/config/oauth/providers/github' ;
66import { google } from '@/server/config/oauth/providers/google' ;
Original file line number Diff line number Diff line change 11import { env } from '@/env.mjs' ;
2- import { OAuthProvider } from '@/lib/oauth/ config' ;
2+ import { OAuthProvider } from '@/features/auth/oauth- config' ;
33import { AppContext } from '@/server/config/trpc' ;
44
55export type OAuthClient = {
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ import { z } from 'zod';
77
88import { env } from '@/env.mjs' ;
99import { zUserAccount } from '@/features/account/schemas' ;
10+ import { OAUTH_PROVIDERS , zOAuthProvider } from '@/features/auth/oauth-config' ;
1011import { DEFAULT_LANGUAGE_KEY } from '@/lib/i18n/constants' ;
11- import { OAUTH_PROVIDERS , zOAuthProvider } from '@/lib/oauth/config' ;
1212import locales from '@/locales' ;
1313import { createSession } from '@/server/config/auth' ;
1414import { 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
You can’t perform that action at this time.
0 commit comments