Earlybyte / aad_oauth

Flutter Azure Active Directory OAuth Package
https://pub.dev/packages/aad_oauth
MIT License
92 stars 186 forks source link

Why web authentication code not working properly #289

Open Refaydeen opened 8 months ago

Refaydeen commented 8 months ago

here everything working and redirecting after redirecting it didnt execute any of the below code why i made breakpoints and tried it.After oauth.login it didnt execute below code.try { final result = await oauth.login(refreshIfAvailable: true);

  // String? accessToken = await oauth.getAccessToken();
  result.fold(
        (error) {
      showError(error.toString());
    },
        (success) async {

      showMessage(success.refreshToken ?? 'Nodata');
      await Future.delayed(const Duration(seconds: 1)); // Add a small delay
          final result =
github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you still think this issue is needed, reopen it again.