# ktor

Paul Meshkovsky

03/02/2023, 8:51 PM
Hello We are using KTOR CLIENT on Browser using ktor-client-js using SPA kotlin-wrappers reactJS framework and one thing we are trying to set up is to use PKCE Auth flow. Is this supported by KTOR CLIENT for JS?

Thomas Urbanitsch

03/03/2023, 8:17 AM
What exactly are you looking for that ktor might/should solve? In the OAuth2 PKCE flow you have basically four steps: 1. Generate your PKCE required values (no need for ktor?) 2. Open the authorization page of the IDP including your required parameters (no need for ktor?) 3. Based on the authorization redirect result, call the endpoint for the token (yes, definitely ktor, but this is a simple HTTP call) 4. Use that resulting token for your future requests (yes, enjoy ktor here too) Do you have specific questions on one of those steps? If you are looking for a component in ktor client that just takes a configuration and performs all those steps for you, i think thats a no
👍 1

Paul Meshkovsky

03/09/2023, 4:34 PM
Ok thank you for walking through steps! That gives me the right idea on using KTOR