f-lab-edu / RECOEN

책읽는 개발자의 블로그 프로젝트
recoen.vercel.app
21 stars 0 forks source link

[Feature] 유저의 관리자 권한을 부여해야한다 #71

Closed noy3928 closed 1 year ago

noy3928 commented 1 year ago

유저의 권한에 따른 기능을 구현해야할 필요가 있다. 이를 위해서 next-auth에서 제공하는 관리자 권한을 부여하는 기능을 구현해야한다.

참고자료 : https://next-auth.js.org/v3/tutorials/typeorm-custom-models https://github.com/nextauthjs/next-auth/discussions/805#discussioncomment-351960 https://next-auth.js.org/tutorials/role-based-login-strategy https://www.reddit.com/r/nextjs/comments/m3f3h5/comment/gqsgm87/?utm_source=share&utm_medium=web2x&context=3. https://github.com/nextauthjs/next-auth/issues/1210#issuecomment-782630909 [jwt callback typescript] : https://github.com/nextauthjs/next-auth/discussions/4735#discussioncomment-2993277 [jwt callback typescript] : https://stackoverflow.com/a/74498139

noy3928 commented 1 year ago

closed by #73