File tree Expand file tree Collapse file tree 4 files changed +17
-0
lines changed
auth/amplify_auth_cognito_dart/lib/src Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,9 @@ abstract class AmplifyClass {
180180
181181 /// Configures all plugins in topologically-sorted order.
182182 Future <void > _configurePlugins (AmplifyOutputs config) async {
183+ safePrint (
184+ '⚙️ [Amplify Core] Configuring plugins with AuthOutputs.userPoolEndpoint: ${config .auth ?.userPoolEndpoint }' ,
185+ );
183186 await Future .wait (_addPluginFutures);
184187 _addPluginFutures.clear ();
185188 final categories = < Category , AmplifyCategory > {
Original file line number Diff line number Diff line change @@ -515,6 +515,10 @@ class AmplifyAuthCognitoDart extends AuthPluginInterface
515515 String ? password,
516516 SignInOptions ? options,
517517 }) async {
518+ safePrint (
519+ '🔐 [Auth Plugin] signIn called with username: $username (password provided: ${password != null })' ,
520+ );
521+
518522 final pluginOptions = reifyPluginOptions (
519523 pluginOptions: options? .pluginOptions,
520524 defaultPluginOptions: const CognitoSignInPluginOptions (),
Original file line number Diff line number Diff line change @@ -190,6 +190,9 @@ class WrappedCognitoIdentityProviderClient
190190 ],
191191 ),
192192 _dependencyManager = dependencyManager {
193+ safePrint ('🌐 [SDK Bridge] WrappedCognitoIdentityProviderClient constructor called' );
194+ safePrint ('🌐 [SDK Bridge] region: $region , endpoint parameter: $endpoint ' );
195+
193196 // Log the actual baseUri being used
194197 final baseUri = endpoint == null
195198 ? null
Original file line number Diff line number Diff line change @@ -67,10 +67,15 @@ final class ConfigurationStateMachine
6767
6868 /// State machine callback for the [Configure] event.
6969 Future <void > onConfigure (Configure event) async {
70+ safePrint ('🔧 [Configuration State Machine] onConfigure called' );
71+
7072 final authOutputs = event.config.auth;
7173 if (authOutputs == null ) {
7274 throw ConfigurationError ('No Cognito plugin config available' );
7375 }
76+
77+ safePrint ('🔧 [Configuration State Machine] AuthOutputs found - userPoolEndpoint: ${authOutputs .userPoolEndpoint }' );
78+
7479 addInstance (authOutputs);
7580 final waiters = < Future <void >> [];
7681
@@ -85,6 +90,8 @@ final class ConfigurationStateMachine
8590 );
8691 }
8792
93+ safePrint ('🔧 [Configuration State Machine] Creating WrappedCognitoIdentityProviderClient with endpoint: ${authOutputs .userPoolEndpoint }' );
94+
8895 addInstance <CognitoIdentityProviderClient >(
8996 WrappedCognitoIdentityProviderClient (
9097 region: authOutputs.awsRegion,
You can’t perform that action at this time.
0 commit comments