CDLUC3 / dmsp_frontend_prototype

Repo to test out new NextJS framework
MIT License
0 stars 0 forks source link

Implement ways to handle authorization #21

Open jupiter007 opened 3 months ago

jupiter007 commented 3 months ago

Once the user is authenticated, we need a way to control whether the user is allowed to visit certain routes, or perform certain operations, such as mutating data.

Try using middleware to check whether user is authenticated and centralizing access control. Use API Routes to control access to certain functionalities based on user's authentication and role.