In the 12th video, the product name is not appearing on my page
first of all check console for any errors. if any then share it here. if there is no error it means product.name is empty. check its value using console.log
Answer
first of all check console for any errors. if any then share it here. if there is no error it means product.name is empty. check its value using console.log
The difference lies in the syntax of the export statement. While rfce places it explicitly at the end, rafce integrates it directly within the arrow function. Both serve the same…
it is because of nextauth update. follow this answer to fix the issue: https://codingwithbasir.com/question/7890
The issue is because of some updates on next and nextauth package. How to fix it: Install next canary or wait for [email protected] to fix the issue https://github.com/vercel/next.js/pull/61721 $ npm…
add isAdmin as property to User type here: https://github.com/basir/next-amazona-v2/blob/main/types/next-auth.d.ts#L7
I am updating this course and will add new features there. will inform you on my youtube channel.
Edge Middleware runs on the Edge Runtime, a runtime built on top of the V8 JavaScript engine. The Edge Runtime provides a subset of Web APIs for you to use…
put / before signin like this: navigate('/signin?redirect=/shipping'); it should be /signin not /cart/signin
check the db to see if you have user with that email and pass there. use postman to send api request to the signin api and see what you get…
the issue is not in passing payload for the api request. req.auth is filled by next auth. check your code with mine in this file: https://github.com/basir/next-amazona-v2/blob/main/lib/auth.ts