We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4540691 commit cc14f60Copy full SHA for cc14f60
src/main/kotlin/com/ctrlhub/core/auth/AuthRouter.kt
@@ -67,7 +67,9 @@ class AuthRouter(httpClient: HttpClient) : Router(httpClient = httpClient) {
67
*/
68
suspend fun complete(flowId: String, payload: LoginPayload): CompleteResponse {
69
return try {
70
- performPost("${Config.authBaseUrl}/self-service/login?flow=$flowId", payload).body()
+ performPost("${Config.authBaseUrl}/self-service/login", payload, mapOf(
71
+ "flow" to flowId
72
+ )).body()
73
} catch (e: ClientRequestException) {
74
if (e.response.status == HttpStatusCode.BadRequest) {
75
val bodyAsString: String = e.response.body()
0 commit comments