mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-31 03:16:42 -05:00
chore: remove unnecessary logs
This commit is contained in:
@@ -24,7 +24,6 @@ export function parseSetCookieHeader(
|
||||
const value = valueParts.join("=");
|
||||
|
||||
if (!name || value === undefined) {
|
||||
console.warn(`Malformed cookie: ${cookieString}`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -52,6 +52,6 @@ describe("anonymous", async () => {
|
||||
await client.signIn.email(testUser, {
|
||||
headers,
|
||||
});
|
||||
expect(linkAccountFn).toHaveBeenCalled();
|
||||
expect(linkAccountFn).toHaveBeenCalledWith(expect.any(Object));
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user