Muljin / msal-flutter

BSD 3-Clause "New" or "Revised" License
9 stars 37 forks source link

MSAL doesn't work in release mode #32

Closed Mon-ira closed 1 year ago

Mon-ira commented 1 year ago

I successfully integrated MSAL package in my project and it works fine in debug mode I can acquire token and everything is fine except when I run my app in release mode the package throughs an exception [+9615 ms] I/flutter (16886): called acquiretoken [ ] I/flutter (16886): creating pca... [ ] I/flutter (16886): authorities [ ] I/flutter (16886): browser_safelist [ +185 ms] E/flutter (16886): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: Instance of 'MsalException' [ ] E/flutter (16886): #0 MSALPublicClientApplication._initialize (package:msal_flutter/src/msal_public_client_application.dart:28) msal_public_client_application.dart:1 [ ] E/flutter (16886): [ +1 ms] E/flutter (16886): #1 MSALPublicClientApplication.createPublicClientApplication

Mon-ira commented 1 year ago

Found A mistake in my configurations

ngocbaomobile commented 10 months ago

@Mon-ira I have issue on release two, but i work on debug