I am a nodeJS developer. My actually use case is: ...
# general
s
I am a nodeJS developer. My actually use case is: I want to deploy hydra and kratos and use the user id provided by hydra/kratos. Also I want that I use jwt tokens to contain the scope of the tokens. So I assume I can manage the roles in kratos and when the user logs in I can consume the jwt token and depending on the scope/claims declared in the jwt token I can give permission to the specific rest api calls? Is there a way to get a webhook or so to give my system the information that the user was created?
m
Hey, we have a lot of resources for nodeJS. There is also a document about the Kratos session token: https://www.ory.sh/kratos/docs/next/concepts/session/ Are you giving 3rd parties access to your users data or are you mainly doing login / registration and similar flows? Check out the hooks: https://www.ory.sh/kratos/docs/next/self-service/hooks/#registration