Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform dosnt init to Web when deployed to AWS #82

Closed
2 tasks done
TheRealNOIG opened this issue Oct 27, 2023 · 3 comments
Closed
2 tasks done

Platform dosnt init to Web when deployed to AWS #82

TheRealNOIG opened this issue Oct 27, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@TheRealNOIG
Copy link

TheRealNOIG commented Oct 27, 2023

Describe the bug

Package dosnt initialize properly when deployed to AWS Static site.
When running localy on Web there are no issue but when deployed to AWS I receive this error

MissingPluginException(No implementation found for method authenticate on channel flutter_web_auth_2)

I resolved this issue by changing the default from windows to web but this probably isnt a good long term solutions

TheRealNOIG@633e206

To Reproduce

Steps to reproduce the behavior:

  1. Build Flutter App to web
  2. upload to AWS Static Site (I use SST for this)
  3. Have something call FlutterWebAuth2.authenticate
  4. Look at console for error MissingPluginException(No implementation found for method authenticate on channel flutter_web_auth_2)

Expected behavior

Open 3rd party auth site

Screenshots

If applicable, add screenshots to help explain your problem.

Device (please complete the following information!)

  • Browser: Chrome, Firefox, Edge
  • flutter_web_auth_2 version: All version (tested from 2.2.1 to 3.0.2

Additional context

Add any other context about the problem here.

Checklist

  • I have read and followed the entire troubleshooting guide and it has not provided the solution I need.
  • I have provided all the information I can (incl. auth URL etc.)
@TheRealNOIG TheRealNOIG added the bug Something isn't working label Oct 27, 2023
@ThexXTURBOXx
Copy link
Owner

I hope that this is now fixed in 3.0.3. Could you please try and report back?
Conditional exporting seems to not work very nicely in Flutter/Dart yet, so I am guessing that 31d59ac should do the trick :)

@TheRealNOIG
Copy link
Author

That resolved it.
Thanks

@ThexXTURBOXx
Copy link
Owner

Perfect, thanks for reporting back!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants