WaspW
Wasp9mo ago
AC

Environment variable I need to add to Railway to get GoogleOAuth to work

I am getting this error in Railway:
🔍 Validating environment variables...

node:internal/errors:496

ErrorCaptureStackTrace(err);

^



TypeError [ERR_INVALID_URL]: Invalid URL

at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)

at new NodeError (node:internal/errors:405:5)

at new URL (node:internal/url:637:13)

at getRedirectUriForCallback (/app/.wasp/out/sdk/wasp/server/auth/oauth/redirect.ts:33:10)

at <anonymous> (/app/.wasp/out/sdk/wasp/server/auth/oauth/providers/google.ts:18:3)

at ModuleJob.run (node:internal/modules/esm/module_job:194:25) {

input: 'undefined/auth/google/callback',

code: 'ERR_INVALID_URL'

}

Google OAuth worked in Heroku for me, and all the env variables have been copied from there
Was this page helpful?