Can I fetch what label the user has 'user' or 'admin' and give permission to visit the page..
TL;DR
Labels can only be set using the Console or Server SDK. They can be used as roles, and you can fetch the label assigned to a user using `account.get()`. You can then give permissions to visit a page based on the label.sure. it's in the response of account.get()
is it safe to use them as roles?
Labels can only be set from the Console or with a Server SDK. So yes.
Recommended threads
- Invalid token passed in the request
Hello, I have an issue using updateMagicURLSession. I send the email using sendMagicLink, which works fine. When i click the link in the email i get the invali...
- functions domain error
I cannot set up the domain for function I’m trying to add the domain api.example.com I can only use Cloudflare as the DNS provider because my domain provider do...
- Storage Bucket Permissions
Hey folks, when enabling CRUD on the bucket level for the role any, should the bucket be accessible when using a session client?