diff --git a/features/authCallback/actions/submitProviderCallback.ts b/features/authCallback/actions/submitProviderCallback.ts index 3a0d179..8afb005 100644 --- a/features/authCallback/actions/submitProviderCallback.ts +++ b/features/authCallback/actions/submitProviderCallback.ts @@ -47,6 +47,7 @@ export const submitProviderCallback = async ( } catch (error) { return { success: false, + status: 500, message: "Error submitting provider callback", error: error, }; diff --git a/shared/models/auth/validateAndDecodeJWT.ts b/shared/models/auth/validateAndDecodeJWT.ts index 6c2ef10..96c3ac8 100644 --- a/shared/models/auth/validateAndDecodeJWT.ts +++ b/shared/models/auth/validateAndDecodeJWT.ts @@ -2,7 +2,6 @@ import { backendFetch, BackendResponse } from "@/shared/helpers/backendFetch"; import { redirect } from "next/navigation"; -import { cookies } from "next/headers"; export interface UserSession { id: string;