and Google OAuth

Hi all,

So I’ve been developing against Google’s Oauth using the cloud console - all was fine and dandy until the changes to hosting which meant that my dev URL now changes constantly.

The reason this is an issue is that building against this authentication system involves telling Google the JavaScript origins and Redirect URLs that your auth is using. These are no longer predictable and you cannot use wildcards as a option to whitelist the entire domain.

Is there either a way around this?
Can I add a static dev domain that I already own for these purposes?
Is there any predictable URL I can use?

Please note that I do not require the old style links - or hosting to be always on for the development server - just a predictable URL whilst the development is happening. Using deployments for testing is not an option as this would slow development down to painful levels.


The new dev URL should only change ~once a year. It’s always in this format

(<characters> being what changes)


I’m not sure it does stay static - mine has definitely changed after a period of inactivity as all my test windows stopped responding and I even had to restart the repl to get the dev server working again - is this documented anywhere?


I don’t think so, but it was confirmed by Ray:


I believe there is some information r.e. this somewhere here:


Thanks :pray:
I have seen my url change and I’m not moving anything between clusters.
Would love it if we could slap a custom domain on the url though, would solve a lot of problems.


Feature Requests


@RayAtReplit @DavidAtReplit Even I am trying to add my flask project’s URL in the ‘Authorized Javascript Origins’ and ‘Authorized Redirect URIs’ fields in my google cloud project for OAuth - but I am getting an error. Even if try to create a new GCP project, I am unable to add the project’s URL as the ‘Authorized Domain’.

Can we not use URLs for OAuth?

Hello! Could we get a link to your Repl so we can investigate what error you are running into? :slight_smile:

Its working now! I am not getting any errors for adding URLs as authorized links


Awesome! It looks like your cluster had changed so now it should be stable for a good while :slight_smile:


i am getting same error
can anyone tell how to fix it

Hello @sy9053988,
Please try insert host="" inside the
Please try:, host="")