Merge branch 'krille/uia-cancel' into 'main'
feat: Implement cancel uiarequest See merge request famedly/famedlysdk!644
This commit is contained in:
commit
ff04b1cce5
|
|
@ -88,6 +88,12 @@ class UiaRequest<T> {
|
||||||
|
|
||||||
Future<T> completeStage(AuthenticationData auth) => _run(auth);
|
Future<T> completeStage(AuthenticationData auth) => _run(auth);
|
||||||
|
|
||||||
|
/// Cancel this uia request for example if the app can not handle this stage.
|
||||||
|
void cancel([Exception err]) {
|
||||||
|
error = err ?? Exception('Request has been canceled');
|
||||||
|
state = UiaRequestState.fail;
|
||||||
|
}
|
||||||
|
|
||||||
Set<String> getNextStages(
|
Set<String> getNextStages(
|
||||||
List<AuthenticationFlow> flows, List<String> completed) {
|
List<AuthenticationFlow> flows, List<String> completed) {
|
||||||
final nextStages = <String>{};
|
final nextStages = <String>{};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue