hello, I keep on getting error Error: You forgot to wrap your component in . Source src/LogInButton.js (6:34) @ onClick 4 | const { loginWithRedirect } = useAuth0(); 5 | > 6 | return loginWithRedirect()}>Log In | ^ please tell me how to resolve?
This is late. But the basic flow is this. When loggedIn event gets called (I forget the exact event name), you can then hide the button by wrapping your button in a div like this: You can then make a function like this to then show the div or not show the div. function toggleElement() { var x = document.getElementById("loginButton"); if (x.style.display === "none") { x.style.display = "block"; } else { x.style.display = "none"; } } Basic Flow: When log in event happens: Hide login, show logout. When log out event happens: Hide logout, show login. This is vague, but hopefully helpful!
Hey!!! Thank you so much for this great tutorial. Super helpful to understand. However, would you mind to share a github’s or any other repository’s link where this code might be at? That would be awesome!!!!! Thanks so much again!! 😄
Hi there! After logging out and then trying to log in again and choosing to continue with Google, it doesn't prompt me to choose an account I wanna sign in with - it remembers the account I used the last time. Any idea how to fix this because I really want to be able to switch accounts easily.
I used to watch Brad all the time back in the day! He is one of the main sources I learned from when starting, so this comment brings a smile to my face. Thanks :)
Fabulous Amazing I wanna see you get 10k *claps of appreciation*
hello, I keep on getting error
Error: You forgot to wrap your component in .
Source
src/LogInButton.js (6:34) @ onClick
4 | const { loginWithRedirect } = useAuth0();
5 |
> 6 | return loginWithRedirect()}>Log In
| ^
please tell me how to resolve?
hey i want to redirect to dashboard.js what to do
Hi just have one question, in staging and production env after logout it will redirect to localhost:3000 how can I fix this?
I cant seem to have gotten the user though, auth token always return 401
Hi my friend. Do you know how i can change language?
How to create custom signup page and use auth0 for authentication not want to use universal auth0 signup
how can we remove those contents after welcome
Great article...just one quesion how can i not show login button once i am logged in and the vice versa and also add my profile pic once logged in ?
This is late. But the basic flow is this.
When loggedIn event gets called (I forget the exact event name), you can then hide the button by wrapping your button in a div like this:
You can then make a function like this to then show the div or not show the div.
function toggleElement() {
var x = document.getElementById("loginButton");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
Basic Flow:
When log in event happens: Hide login, show logout.
When log out event happens: Hide logout, show login.
This is vague, but hopefully helpful!
@@CooperCodes Thanks for your reply !! anyway i am not comfortable with auth0...so i decided to go with jwt token
thank you so much for this!
You're so welcome!
Great 🔥
Hey!!! Thank you so much for this great tutorial.
Super helpful to understand.
However, would you mind to share a github’s or any other repository’s link where this code might be at? That would be awesome!!!!!
Thanks so much again!! 😄
Hi there! After logging out and then trying to log in again and choosing to continue with Google, it doesn't prompt me to choose an account I wanna sign in with - it remembers the account I used the last time. Any idea how to fix this because I really want to be able to switch accounts easily.
Possibly look into clearing the cache manually? That is strange though. I would bet it has something to do with Google caching your previous login.
the next brad travesty!
I used to watch Brad all the time back in the day! He is one of the main sources I learned from when starting, so this comment brings a smile to my face. Thanks :)
@@CooperCodes keep making videos my guy. It’s only a matter of time…
It is free or not
I believe auth0 is free up to 7000 active users and unlimited logins, you can see more by going to the Auth0 free plan website