Hello everyone I'm having a problem in configuring supertokens in the frontend side, my APIs are built in a microservices architecture and in the configuration it's is asking me to configure the api domain, but in out architecture design each microservice has a different domain, so what should I insert the api domain field
r
rp_st
10/24/2023, 2:45 PM
hey @mohmaaita it's the value that the frontend will use to query your API. If you have multiple of those, then you need to set the value to the api in which you will add our backend sdk middleware.
m
mohmaaita
10/29/2023, 8:57 AM
Yah I've studied the problem and decided to create a BFF layer between the Frontend and the microservices and the authentication will be handled in that, with that approach the frontend has a single source of information.
What do you think about this solution cause I'm not sure to go through that process but I can't seem to find any solution other than this.
r
rp_st
10/29/2023, 1:12 PM
that is a good solution indeed. Quite a standard way of architecting your app.
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).