Hi Ktorers :wave: I have ktor microservices and f...
# ktor
a
Hi Ktorers 👋 I have ktor microservices and firebase authentication. There is no problem while verifying tokens when a request received to an endpoint. But also I have clients in microservices that talks to each other, I couldn’t find a way to set token to the clients 😅 I also use consul to discover services. I may elaborate in case you need more info 🙂 My approach looks like the project below: https://github.com/marcguilera/ktor-bank/blob/master/balance/balance-client/src/ma[…]marcguilera/bank/balance/client/default/DefaultBalanceClient.kt
a
What do you mean that you couldn’t find a way to set token to the clients?
a
I figured out it’s more about the structure of the project and the way I try to set auth header. The problem looks like not related to ktor features actually 🙂 Now, I try to set the header to the singleton kodein instance.