flutter-passkeys icon indicating copy to clipboard operation
flutter-passkeys copied to clipboard

sign up and get "Socket operation failed"

Open OneZeroH opened this issue 1 year ago • 3 comments

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

OneZeroH avatar Jan 30 '24 01:01 OneZeroH

Hey @OneZeroH,

Thank you for this issue - we'll look into it!

vincentdelitz avatar Feb 02 '24 11:02 vincentdelitz

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 :)

incorbador avatar Feb 05 '24 13:02 incorbador

When I use melos commands to run, it works!

OneZeroH avatar Feb 06 '24 02:02 OneZeroH