chore: remove unnecessary logs

This commit is contained in:
Bereket Engida
2024-12-08 15:13:58 +03:00
parent 1404311860
commit e89fa004ea
3 changed files with 2 additions and 4 deletions

View File

@@ -24,7 +24,6 @@ export function parseSetCookieHeader(
const value = valueParts.join("=");
if (!name || value === undefined) {
console.warn(`Malformed cookie: ${cookieString}`);
return;
}

View File

@@ -52,6 +52,6 @@ describe("anonymous", async () => {
await client.signIn.email(testUser, {
headers,
});
expect(linkAccountFn).toHaveBeenCalled();
expect(linkAccountFn).toHaveBeenCalledWith(expect.any(Object));
});
});

View File

@@ -187,8 +187,7 @@ export const anonymous = (options?: AnonymousOptions) => {
}
if (options?.onLinkAccount) {
const newSession =
await ctx.context.internalAdapter.findSession(sessionCookie);
const newSession = ctx.context.newSession;
if (!newSession) {
return;
}