jamesking5169
01/06/2021, 11:54 AMapp-metadata section that defines a collection of roles.
{
"id": "some id",
"exp": 1602522810,
"app_metadata": {
"authorization": {
"roles": [
"admin",
"editor"
]
}
}
}
You can then tell Netlify how to redirect the user if they don't have a JWT or they don't have the valid role. More info in the docs here:
https://docs.netlify.com/visitor-access/role-based-access-control/