The site probably works locally because “localhost” is considered a secure context, but an http:// address is not. The “Error while registering” at the start of the error message OP posted would line up with this logic in the except block that tries to handle registration:
Get some HTTPS on spoonjoy.co and I’ll bet you that’ll solve the problem.
P.S. WOW the throttling here is annoying, I split this up into two to get past the “two URLs only” rule and ran into the “30 seconds between posts” rule
Ha! No, spoonjoy.co is an older attempt at building Spoonjoy that’s unrelated, I totally forgot that was up - the .app domain is the correct one, and does use HTTPS
@rob I’m apparently helping too quickly because all of my posts in here were “flagged by the community” as spam. Can you help me out here? I can’t continue to help here if the forums are going to keep treating me like this.
The last place I wanted to suggest starting to debug this is within webauthnRegister(), or whatever logic within Spoonjoy eventually makes the request to this method:
Maybe this is a case of this.event.body being undefined for some reason? That’s the best guess I have for you without seeing any Spoonjoy code (which I’m definitely not asking for access to, to be clear! )
The database (Railway) should only get involved if the register is successful, the api side inserts their credentials into that UserCredential table. Can you open up the UserCredential table in some kind of Railway UI and see if any records have been inserted?
@IAmKale What do you think about the error message being “Unexpected token e in JSON at position 0” and the fact that the clientBodyJSON’s first character is the letter “e”?