next-saas-stripe-starter icon indicating copy to clipboard operation
next-saas-stripe-starter copied to clipboard

Please can you add NEXTAUTH_URL to the env.local file?

Open oldgitt opened this issue 1 year ago • 1 comments

Thanks for creating this startup wrapper, it's next level, much appreciated!!!!

Please can you add NEXTAUTH_URL to the env.local file?

I spent hours trying to debug in production a google oauth redirect_uri_mismatch error

You can’t sign in because this app sent an invalid request. You can try again later, or contact the developer about this issue. [Learn more about this error](https://developers.google.com/identity/protocols/oauth2/web-server#authorization-errors-redirect-uri-mismatch)
If you are a developer of this app, see [error details](https://accounts.google.com/).
Error 400: redirect_uri_mismatch

All I had to do was set the NEXTAUTH_URL as the production URL

Could be worth adding to the envs and docs

oldgitt avatar Dec 03 '24 16:12 oldgitt

Same here.

rainer85ah avatar Jan 24 '25 16:01 rainer85ah