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
The ideal workflow would be to let the Login page know when the LoginForm has submitted the information and has a response (error or success)
You will need to create the page that you want to redirect (maybe we need to discuss this as a team to what page will be the initial page once the user logs in)
The text was updated successfully, but these errors were encountered:
I am surprised to see there is no proper way to redirect from login page -> my account page after successful authentication.
Error Message:
error Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
You might have mismatching versions of React and the renderer (such as React DOM)
..
var provider = new firebase.auth.FacebookAuthProvider();
auth.signInWithPopup(provider).then(function(result) {
// The signed-in user info.
var user = result.user;
useRouter().replace('/account');
// ...
}).catch(function(error) {
...
Redirect in Next.js is different than a conventional React applicacion with React router. Here are some resources:
The ideal workflow would be to let the Login page know when the LoginForm has submitted the information and has a response (error or success)
You will need to create the page that you want to redirect (maybe we need to discuss this as a team to what page will be the initial page once the user logs in)
The text was updated successfully, but these errors were encountered: