Skip to content

Commit 37833e3

Browse files
msukkariclaude
andcommitted
chore: tighten wording in signIn callback comment
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5afc289 commit 37833e3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/web/src/auth.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,9 @@ const nextAuthResult = NextAuth({
244244
//
245245
// Background: @auth/core's handleLoginOrRegister (callback/handle-login.js)
246246
// reads the session token from the request and, if it can't decode it
247-
// (e.g., the session cookie expired browser-side while the user was
248-
// mid-OAuth-dance, or it never made it across the cross-site redirect),
249-
// falls through to `createUser({ ...profile })` silently spawning a
247+
// (e.g., the session cookie expired browser-side mid auth flow, or it
248+
// never made it across the cross-site redirect),
249+
// falls through to `createUser({ ...profile })`, silently spawning a
250250
// new orphan User row from the OAuth profile. That's correct behavior
251251
// for `purpose: "sso"` providers (an unauthenticated user logging in
252252
// via SSO should become a new Sourcebot user). It's wrong for

0 commit comments

Comments
 (0)