planetary-ios
planetary-ios copied to clipboard
Fix CSRF Error on Planetary.name
Steps to reproduce:
- Launch Planetary from a device that hasn't joined the Planetary.name room yet.
- Navigate to Settings -> Aliases -> Register new Alias
- Tap "Join Planetary.name room" Expected: the room is joined successfully Actual: an error message is displayed
The underlying error message from the server is "CSRF token invalid".
Maybe we need to initialize a cookie store for this flow in the iOS code. But also maybe this is a bug in the server code because I thought CSRF cookies should only be set if you are signed in, and you don't have to be signed in for invitation redemption.
Also maybe this is an error added to ssbc/go-ssb-room between when we added the magic token thing and the HEAD of master on planetary-social/go-ssb-room
This is not the case anymore. We suspect that an older version of the room code may have been incorrectly deployed.