franckeinstein
franckeinstein
WWasp-lang
Created by franckeinstein on 2/17/2024 in #🙋questions
Oauth redirects to localhost:3001 instead of 3000
it's the one from ""wasp new <project-name> -t saas". I don't know how to get the github link, but maybe it was some issue on my part. The latest saas template you shared works perfectly
17 replies
WWasp-lang
Created by franckeinstein on 2/17/2024 in #🙋questions
Oauth redirects to localhost:3001 instead of 3000
Okay thanks for the help. I haven't done a lot of change to the code. I guess the part of the documentation where it is recommended to do "wasp new <project-name> -t saas" should be updated then. In the meantime, I will use the new template thanks.
17 replies
WWasp-lang
Created by franckeinstein on 2/17/2024 in #🙋questions
Oauth redirects to localhost:3001 instead of 3000
No description
17 replies
WWasp-lang
Created by franckeinstein on 2/17/2024 in #🙋questions
Oauth redirects to localhost:3001 instead of 3000
I configured google Auth by exactly following the tutorial you just shared. the only difference being that i added userinfo.email in the scope. I configured the URI redirect like this: http://localhost:3000/auth/login/google as in the tutorial. should i make it: http://localhost:3001/auth/login/google ? I don't know, maybe i am missing sth here. and 50% of the time I get this error: "[email protected] start [Server] > npm run validate-env && NODE_PATH=dist node -r dotenv/config dist/server.js [Server]
[Server]
[Server] > [email protected] validate-env [Server] > node -r dotenv/config ./scripts/validate-env.mjs [Server]
[Server] 🔍 Validating environment variables... [Server] 🚀 "Email and password" auth initialized [Server!] file:///Users/fsndzomga/Documents/web-dev-wasp/repliq/.wasp/out/server/dist/auth/providers/oauth/init.js:36 [Server!] throw new Error(The ${provider.displayName} auth provider requires clientID provided via env variables.); [Server!] ^ [Server!] [Server!] Error: The Google auth provider requires clientID provided via env variables. [Server!] at ensureValidConfig (file:///Users/fsndzomga/Documents/web-dev-wasp/repliq/.wasp/out/server/dist/auth/providers/oauth/init.js:36:15) [Server!] at init (file:///Users/fsndzomga/Documents/web-dev-wasp/repliq/.wasp/out/server/dist/auth/providers/oauth/init.js:18:9) [Server!] at async file:///Users/fsndzomga/Documents/web-dev-wasp/repliq/.wasp/out/server/dist/auth/providers/index.js:12:11 [Server!] [Server!] Node.js v18.12.0 [Server] [nodemon] app crashed - waiting for file changes before starting..."
17 replies