Skip to content
Snippets Groups Projects
Commit 117b15bf authored by Taras's avatar Taras
Browse files

Add identifier to get login flows

parent 35967688
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ interface LoginWizard {
suspend fun resetPasswordMailConfirmed(newPassword: String, logoutAllDevices: Boolean = true)
//Added to support few login flows
suspend fun getAllLoginFlows(): List<List<Stage>>
suspend fun getAllLoginFlows(identifier: JsonDict): List<List<Stage>>
/**
* Perform custom login stage by sending a custom JsonDict.
......
......@@ -148,9 +148,9 @@ internal class DefaultLoginWizard(
}
//Added to support few login flows
override suspend fun getAllLoginFlows(): List<List<Stage>> {
override suspend fun getAllLoginFlows(identifier: JsonDict): List<List<Stage>> {
try {
loginFlowTask.execute(LoginFlowTask.Params(LoginFlowParams()))
loginFlowTask.execute(LoginFlowTask.Params(LoginFlowParams(identifier = identifier)))
} catch (exception: Throwable) {
return if (exception is Failure.RegistrationFlowError) {
pendingSessionData =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment