You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
React.js: i have a google login button, that looks something like this
constGoogleButton=()=>(<ahref='/auth/google'><divclassName='google-icon-wrapper'><imgclassName='google-icon'src={googleLogo}alt='Google logo'/></div><pclassName='google-btn-text'>
Sign in with google
</p></a>)
React.js (http-proxy-middleware) in development mode i also have proxy settings
Node.js : I have this endpoint, and it doesn't work on production since the proxy does not work on the production
app.get('/auth/google', passport.authenticate('google', {
scope: SCOPE,
access_type: 'offline',
})
);
The problem is, I have React-PWA that caches the link on the production and accordingly the passport cannot authenticate the user..
Go to the page below, click the google link, and you'll go to the page ../auth/google, but if you go to the development tools => application => clear storage, click "clear site data" and then click again login to Google, it will work. .
Hi,
React.js: i have a google login button, that looks something like this
React.js (http-proxy-middleware) in development mode i also have proxy settings
Node.js : I have this endpoint, and it doesn't work on production since the proxy does not work on the production
app.get('/auth/google', passport.authenticate('google', {
scope: SCOPE,
access_type: 'offline',
})
);
The problem is, I have React-PWA that caches the link on the production and accordingly the passport cannot authenticate the user..
Go to the page below, click the google link, and you'll go to the page ../auth/google, but if you go to the development tools => application => clear storage, click "clear site data" and then click again login to Google, it will work. .
https://passport-google-auth.herokuapp.com/
Environment
MERN stack
The text was updated successfully, but these errors were encountered: