flutter-passkeys
flutter-passkeys copied to clipboard
sign up and get "Socket operation failed"
I clone the project and run on a physical and virtual pixal 6a but when I signing up, I alway got "Socket operation failed" after I change api on api_client.dart from "https://<project ID>.frontendapi.corbado.io" to "https://api.eu-1.corbado.io" which works on live demo but still got the same errror please tell me how to do with that, thanks
Hey @OneZeroH,
Thank you for this issue - we'll look into it!
Hey @OneZeroH, which of the example applications are you running? (the repository contains quite a few of them). It appears that you haven't set up the CORBADO_PROJECT_ID environment variable. That's why the URL looks incomplete (instead of https://.frontendapi.corbado.io it should be for example https://pro-6244024196016258271.frontendapi.corbado.io.
So what can you do?
- either you use our melos commands to run the examples => check out our "Example" section of our README: https://pub.dev/packages/passkeys#example
- alternatively you can make sure that the ENV variable will be set yourself by including it in your run command (the command for the passkey package example would then look like this:
flutter run lib/main.dart --dart-define=CORBADO_PROJECT_ID=pro-6244024196016258271
Please let me know if you were able to run the example :)
When I use melos commands to run, it works!