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

does not work locally or when deployed to cloudflare #3

Open
spendres opened this issue May 10, 2023 · 13 comments
Open

does not work locally or when deployed to cloudflare #3

spendres opened this issue May 10, 2023 · 13 comments
Labels
documentation Improvements or additions to documentation

Comments

@spendres
Copy link

This is a nice start to a demo, but the login with passkeys button either spins when deploying locally, or cannot authenticate when deployed to cloudflare with a custom domain.

I suspect that the calls to encryption need domain specific settings, but haven't researched the code yet.

@berrysauce
Copy link
Owner

Thanks! Deployment via Cloudflare should work. I haven't updated the README yet, but you need a .dev.vars file with a JWT_TOKEN (a random string for signing your JWT tokens) in the folder, and you have to provide Cloudflare the token via wrangler.

I also have troubles with local hosting as the calls between frontend and backend fail. I added a HTTP_SCHEME option to all relevant files, but that didn't help. I haven't looked into this in detail, as it wasn't that much of a priority, though.

@berrysauce berrysauce added the documentation Improvements or additions to documentation label May 10, 2023
@berrysauce
Copy link
Owner

I recommend you check the application logs with npx wrangler tail, any errors should pop up there

@spendres
Copy link
Author

spendres commented May 10, 2023 via email

@spendres
Copy link
Author

spendres commented May 10, 2023 via email

@berrysauce
Copy link
Owner

I suspect that the local dev will need self-signed certs since the passkey spec requires ssl.

Good idea! That might be it!

@spendres
Copy link
Author

spendres commented May 10, 2023 via email

@berrysauce
Copy link
Owner

Any luck getting it working on a live Worker?

@spendres
Copy link
Author

spendres commented May 13, 2023 via email

@spendres
Copy link
Author

spendres commented May 27, 2023 via email

@spendres
Copy link
Author

spendres commented May 27, 2023 via email

@spendres
Copy link
Author

spendres commented May 27, 2023 via email

@spendres
Copy link
Author

spendres commented Jun 8, 2023 via email

@berrysauce
Copy link
Owner

@spendres Oh that's awesome! Thanks for your dedication 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants