WaspW
Wasp2y ago
ssor

Oauth provider flow redirects to localhost:3001 instead of 3000

I'm creating a new WASP app from scratch, I've added the Google Provider.

My server by default runs on Port 3000 when I wasp start

Problem is, when I try and sign in with Google, I'm redirected to http://localhost:3001/auth/google/login

I've tried everything inluding changing the Vite config to say:

import { defineConfig } from 'vite'

export default defineConfig({
  server: {
    open: true,
    port: 3000,
  },
})


And also setting my Server and Client env vars to include these:

WASP_WEB_CLIENT_URL=http://localhost:3000
WASP_SERVER_URL=http://localhost:3000
Was this page helpful?