947 viewsJS Amazona
0 Comments

i can not understand why session in orders/index is null

Bassir Answered question April 12, 2023

I got the same problem.

installed “next-auth”: “^4.22.0”.

hello there,

this issue comes from next-auth 4 update. it does not support getSession anymore.

https://next-auth.js.org/getting-started/upgrade-v4

apply this commit to update to next 13 (app router not upgraded yet because it is in beta)

https://github.com/basir/next-tailwind-amazona/commit/843d4de9dee7de4776dbeb4acc6de5dbeaab7572#diff-8074f9e7dcc73a423cf1779180b2ba881d4fa2e43118b89e646d4e60ee7d6487

Bassir Posted new comment April 12, 2023