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");
const responseProvision = (await backendFetch(
`${authClientCallbackUrl.data?.callback_url!}?callbackURI=${
`${authClientCallbackUrl.data?.callback_url}?callbackURI=${
process.env.APP_URL
}${process.env[envKey]}&${queries}`,
)) as BackendResponse<{
@ -36,7 +36,7 @@ export const submitProviderCallback = async (
(await cookies()).set({
name: "auth_token",
value: responseProvision.data?.authToken!,
value: responseProvision.data?.authToken || "",
httpOnly: true,
path: "/",
secure: process.env.NODE_ENV === "production",

View File

@ -31,7 +31,7 @@ const AuthCallbackIndex = () => {
finishOAuthFlow("oauth-failed");
}
})();
}, []);
}, [name, queries]);
return (
<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 ({
children,
}: Readonly<{ children: React.ReactNode }>) => {
let session: UserSession | null = await validateAndDecodeJWT();
const session: UserSession | null = await validateAndDecodeJWT();
return (
<AuthSessionProvider session={session}>{children}</AuthSessionProvider>