fix: read Google access_token from Account table, not getToken() #12
Reference in New Issue
Block a user
Delete Branch "claude/reverent-proskuriakova"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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