Repository navigation
|
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) |
Answered by
wernst
Apr 11, 2025
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 |
0 replies
Answer selected by
wernst
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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