Hello everyone
this is my token data that will be received
{
"user": {
"user": {
"user_role": "Admin"
}
}
}
So in the auth token how can I add the role settings to get it from my objects
Hello everyone
this is my token data that will be received
{
"user": {
"user": {
"user_role": "Admin"
}
}
}
So in the auth token how can I add the role settings to get it from my objects
@Joyce Can you please help us here ? I have watched the video but wanted to have more info here since we have to send for example multiple roles here
Also I can manage to send it in the first level instead of getting nested, for the object will this work
[
"Role A",
"Role B",
"Role C",
"Role D"
]
Hi @yma
Of course! So sorry we missed your post entirely back in February
How are things configured in your backend? Do you have a user
table with a user_role
column that has a single text value (e.g. “Admin”).
If that’s the case, something like this should work:
If not, can you reach out to support with a short video showing how things are setup in your backend and where you’re stuck? (I’m assuming there’s confidential info so might be easier to help in a private chat than have you blur that out )