-
|
How can I check which role (if any) has been matched for the current triplit user/session? I'm trying to verify that my role matchers are working. (see #274) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
If you have a token available in the Triplit CLI you can run As well you can log the token on the client at |
Beta Was this translation helpful? Give feedback.
If you have a token available in the Triplit CLI you can run
triplit roles eval <token>to see what roles Triplit will apply to the token (https://www.triplit.dev/docs/cli/roles#triplit-roles-eval). By default this will evaluate against the server you're pointed to. If you want to check against your local schema definition runtriplit roles eval <token> --location=local.As well you can log the token on the client at
client.tokenand the parsed token claims atclient.vars.$token