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

1 Commits

Author SHA1 Message Date
19b1f26254 fix: read Google access_token from Account table, not getToken()
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>
2026-03-13 00:56:33 -05:00