From e14187de813b7307a226dcec11f34afc9e566337 Mon Sep 17 00:00:00 2001 From: Moritz Fink Date: Sat, 13 May 2023 22:37:25 +0200 Subject: [PATCH] Fix auth providers reading --- lib/src/auth_config/auth_config.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/auth_config/auth_config.dart b/lib/src/auth_config/auth_config.dart index 247a0b2..91ed624 100644 --- a/lib/src/auth_config/auth_config.dart +++ b/lib/src/auth_config/auth_config.dart @@ -20,7 +20,7 @@ class AuthConfig { allowUnauthenticatedIdentities: json['allowUnauthenticatedIdentities'], requiredAttributes: _getAsList(json, 'requiredAttributes'), usernameAttributes: _getAsList(json, 'usernameAttributes'), - authProviders: _getAsList(json, 'authProviders'), + authProviders: _getAsList(json, 'authProvidersUserPool'), mfaConfiguration: json['mfaConfiguration'], mfaTypes: _getAsList(json, 'mfaTypes'), ); @@ -36,7 +36,7 @@ class AuthConfig { "allowUnauthenticatedIdentities": $allowUnauthenticatedIdentities, "requiredAttributes": $requiredAttributes, "usernameAttributes": $usernameAttributes, - "authProviders": $authProviders, + "authProvidersUserPool": $authProviders, "mfaConfiguration": $mfaConfiguration, "mfaTypes": $mfaTypes, ''';