fix: read Google access_token from Account table, not getToken() #12

Merged
jason merged 1 commits from claude/reverent-proskuriakova into master 2026-03-13 00:57:20 -05:00
Owner

With strategy:"database" there is no JWT cookie, so getToken() always
returns null. The Google access_token is stored in the Account table by
the PrismaAdapter. Query it directly via prisma.account.findFirst()
instead of the JWT helper.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

With strategy:"database" there is no JWT cookie, so getToken() always returns null. The Google access_token is stored in the Account table by the PrismaAdapter. Query it directly via prisma.account.findFirst() instead of the JWT helper. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jason added 1 commit 2026-03-13 00:57:17 -05:00
With strategy:"database" there is no JWT cookie, so getToken() always
returns null. The Google access_token is stored in the Account table by
the PrismaAdapter. Query it directly via prisma.account.findFirst()
instead of the JWT helper.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jason merged commit 2077ab3275 into master 2026-03-13 00:57:20 -05:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jason/wfh#12