https://kotlinlang.org logo
#kgraphql
Title
# kgraphql
m

manlan

09/03/2020, 5:37 PM
Hello there! How do I handle authentication with KGraphQL?
j

jeggy

09/03/2020, 10:00 PM
It depends. 😜 * build your own context you can follow this https://kgraphql.io/Reference/resolver/#context * I see that the
accessRule
is not documented yet 😯 you can find some examples here: https://www.github.com/aPureBase/KGraphQL/tree/master/kgraphql%2Fsrc%2Ftest%2Fkotlin%2Fcom%2Fapurebase%2Fkgraphql%2Faccess%2FAccessRulesTest.kt * We are currently in the process of building a seamless ktor implementation, and this is something we want to improve much on. But you can find the documention for this here https://kgraphql.io/Plugins/ktor/#wrap
👍 1
🙂 1
3 Views