Closed noy3928 closed 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
closed by #73
유저의 권한에 따른 기능을 구현해야할 필요가 있다. 이를 위해서 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