2 diretores for validate

,

I have the follows folders in my project:

//here are the site/shopping administration
site/admin
site/admin/login
//here are the place of clientes of shopping
site/shopping
site/dhopping/login

if the client loggin sucessfull, then he be able to of access, using JWT, to site/admin too?

Exists a way of to protect this as in $_SESSION[“admin”] and $_SESSION[“cliente”]?

Hi @carcleo,

Welcome to the Community!

You can add roles to your users, and then protect the routes based on what roles the user has. You will need to set up role based access control:

Then you will need to add the roles to the token:

Hope this helps!
Dan

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.