Skip to content

Commit c9e16be

Browse files
handle credentials case
1 parent 60a7ad7 commit c9e16be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/web/src/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export const { handlers, signIn, signOut, auth } = NextAuth({
164164
// Explicitly update the Account record with the OAuth token details.
165165
// This is necessary to update the access token when the user
166166
// re-authenticates.
167-
if (account && account.provider && account.providerAccountId) {
167+
if (account && account.provider && account.provider !== 'credentials' && account.providerAccountId) {
168168
await prisma.account.update({
169169
where: {
170170
provider_providerAccountId: {

0 commit comments

Comments
 (0)