Sign in With Google not working with Custom URL

I’ve set up a custom URL and users are able to access the App and sign in with an email or by using their Google account. I configured the custom URL in Glide with www so it’s However, whenever a user browses to without the www they can access the App but authenticating with their Google account does not work. They get an “Internal Server” error.

Please Help!