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

mantono

01/18/2020, 5:30 PM
If I get a call with destination http://127.0.0.1:8888/login/callback#access_token=xxz - how do I read
access_token
in ktor? I cannot seem to find a function that does it for me 🤔 At least not on
call.request
....
v

voben

01/18/2020, 11:31 PM
Usually your access token is in your header, and you can pull them out of your requests. See https://ktor.io/servers/calls/requests.html
m

mantono

01/18/2020, 11:40 PM
That was not the case here (yet). The problem was that I was requesting the wrong response type in Auth0/OAuth2.
Thanks anyway 🙂