Our application is otherwise working, but if a user registers using “Sign Up with Google” and their first name or last name contains white space, the redirect url contains white space, which causes auth0 to return an “invalid redirect url” error
Hi @daylan
Welcome to the Auth0 Community!
This edge case might be frustrating regarding a simple social connection with Google. The recommended solution would be to URL-encode the redirect URL so that the white spaces are removed. A good example of this using Javascript would be:
`const redirectUrl = `https://myapp.com/welcome?first_name=${encodeURIComponent(user.given_name)}&last_name=${encodeURIComponent(user.family_name)}`;
// Result for "Mary Anne": https://myapp.com/welcome?first_name=Mary%20Anne&...
`
Let me know if you have any other issues or questions regarding the matter!
Kind Regards,
Nik