Merge pull request '🚨 fix: resolve all linting errors' (#1) from fix/linting into main

Reviewed-on: #1
This commit is contained in:
2026-02-07 14:14:32 +07:00
3 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ export const submitProviderCallback = async (
throw new Error("Failed to get auth client callback URL"); throw new Error("Failed to get auth client callback URL");
const responseProvision = (await backendFetch( const responseProvision = (await backendFetch(
`${authClientCallbackUrl.data?.callback_url!}?callbackURI=${ `${authClientCallbackUrl.data?.callback_url}?callbackURI=${
process.env.APP_URL process.env.APP_URL
}${process.env[envKey]}&${queries}`, }${process.env[envKey]}&${queries}`,
)) as BackendResponse<{ )) as BackendResponse<{
@ -36,7 +36,7 @@ export const submitProviderCallback = async (
(await cookies()).set({ (await cookies()).set({
name: "auth_token", name: "auth_token",
value: responseProvision.data?.authToken!, value: responseProvision.data?.authToken || "",
httpOnly: true, httpOnly: true,
path: "/", path: "/",
secure: process.env.NODE_ENV === "production", secure: process.env.NODE_ENV === "production",

View File

@ -31,7 +31,7 @@ const AuthCallbackIndex = () => {
finishOAuthFlow("oauth-failed"); finishOAuthFlow("oauth-failed");
} }
})(); })();
}, []); }, [name, queries]);
return ( return (
<div className="w-full flex flex-col items-center gap-2 pt-8"> <div className="w-full flex flex-col items-center gap-2 pt-8">

View File

@ -7,7 +7,7 @@ import AuthSessionProvider from "./AuthSession.client";
const AuthSessionProviderWrapper = async ({ const AuthSessionProviderWrapper = async ({
children, children,
}: Readonly<{ children: React.ReactNode }>) => { }: Readonly<{ children: React.ReactNode }>) => {
let session: UserSession | null = await validateAndDecodeJWT(); const session: UserSession | null = await validateAndDecodeJWT();
return ( return (
<AuthSessionProvider session={session}>{children}</AuthSessionProvider> <AuthSessionProvider session={session}>{children}</AuthSessionProvider>