Hello, im learning about supertokens and i have doubts about event propagation, does the core suppor...
v
Hello, im learning about supertokens and i have doubts about event propagation, does the core support send events like user-created or user-updated into a message broker or do i need to overwrite those endpoints to make by my own?
r
Hey @Vrl checkout the how it works section in our docs and also the overrides section.
The core doesn’t do those things and not do you need webhooks. All of those events / actions go in the backend SDK layer as customisations when calling the supertokens init function
v
hmm i expected this
but i still have some doubts about the architeture it self, not something specific related to supertokens idk if you can help me
r
sure
v
how my relationship with others entitys will be? for example i have an entity called Videos, and each video has an owner (1 to many in Users) how can i achive this?
r
oh right. That's totally unrelated to auth.
v
but the user in Auth it will be different to the this type of User?
r
the user in supertokens will essentially be a userId, which you can use in your own db to model this kind of a relationship between your app's entities
v
ok, so makes sense to separate by User/Auth Microservice and Video Microservice where User/Auth ms will have SuperToken config and logic between the core?
r
yea! that does make sense