'Next-Auth credentials not returning session and not storing Session and Account in db via prisma adapter
i'm trying to implement credientials part with next-auth, github and google works like charm and after signin via these providers I get user, account, session storred correctly in db psql via prisma adapter, while when using credentials i get 200 from api when user and pass correct, but session apears only in network dev tab, but is null when using getSession. When user is registering, he correctly gets userId very much like when github and google are used, but Account and Session tab are not filled, should I make it manually, like refreshToken, accessToken expires and manually add data for specific userId and store it in Account and Session tables in db?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
