session.user extended with id prop

This commit is contained in:
2024-01-08 15:50:03 +01:00
parent cd9060c97e
commit adae452399
3 changed files with 36 additions and 5 deletions

View File

@@ -1,8 +1,6 @@
# ToDo
* infinite scroll
* https://stackoverflow.com/questions/67624601/how-to-implement-infinite-scroll-in-next-js
* authentication with Google
* https://www.telerik.com/blogs/how-to-implement-google-authentication-nextjs-app-using-nextauth
* multi-user support
* bill amount entry
* monthly bill amount summery
@@ -15,3 +13,7 @@ Authentication consists of the following parts:
* `middleware.ts` = hooks-up `next-auth` into the page processing pipeline - user session is checked before any page is rendered
* `auth.ts` = defines how the authentication is done, and how session is checked (used by middleware)
* `/app/api/[...nextauth]/route.ts` = defines route which shows an authentication form
Source:
* [How to Implement Google Authentication in a Next.js App Using NextAuth](https://www.telerik.com/blogs/how-to-implement-google-authentication-nextjs-app-using-nextauth)
* [Next Js 14 Authentication on Edge Runtime](https://www.youtube.com/watch?v=rEopVx0FKGI)