I have 2 independent servers - one A for user (aut...
# server
s
I have 2 independent servers - one A for user (auth, refresh, details, registration), the other one B - for data. if I want to access data on server B, I need to validate token first of all, that means that in my B server endpoint I need to call a
check
method from A server. Is it correct?
n
is your question specific to kotlin?
s
my server is written in Kotlin, using ktor
m
I would say this is a arch decision, and not kotlin specific...
depends on technology that you are using for authentication/validation, for example if you are using JWT you have all information to validate user without call check... assuming you don't care about revoke.. if you are using a different technology you probably need to call server B, depends...
s
yeah, got it. my mistake, thank you