Closed andrewdmontgomery closed 1 month ago
When attempting to login with OAuth, email addresses containing a + can't be used because the + is converted to a space.
+
This appears to be caused by how URLComponents encodes URLQueryItem: https://stackoverflow.com/a/27724627/10486646
URLComponents
URLQueryItem
Essentially, the + is a valid character in a query. But the server will convert that character to a space. So if the character is meant to be literally, it needs to be percent-encoded.
When attempting to login with OAuth, email addresses containing a
+
can't be used because the+
is converted to a space.This appears to be caused by how
URLComponents
encodesURLQueryItem
: https://stackoverflow.com/a/27724627/10486646Essentially, the
+
is a valid character in a query. But the server will convert that character to a space. So if the character is meant to be literally, it needs to be percent-encoded.