I want to make a simple project with a couple of microservices.
I have User microservice, which controls the all user related staff like user creation, update information about the user, etc.
And now I need to do the authentication for my project. And I stuck a bit. I want to implement simple JWT authentication with refresh tokens. I know how to do that but I don't know where to do that.
So my question is: do I need to do authentication logic on the User microservice, or I need to keep it separate and create the Auth microservice?
If I choose the second option with separate Auth microservice, in which way should I handle the creation of the user? Create it firstly in Auth service and then call the User service from it? Or create it on User service then create it on auth service?