Closed WebDev-Akhil closed 9 months ago
Upon successful authentication, Google redirects the user to the URL which we set in the "Redirection URI" field in the Google Console.
As the URLs change for every vercel preview deployment, setting a static URL in the "Redirection URI" results in a mismatch. So how to handle this?
As I remember Vercel adds env variable for the deployment link, you can check and use it
Upon successful authentication, Google redirects the user to the URL which we set in the "Redirection URI" field in the Google Console.
As the URLs change for every vercel preview deployment, setting a static URL in the "Redirection URI" results in a mismatch. So how to handle this?