Insightful tutorial. Something developers might need to test is the hitting the reload button when the user is set to true. To ensure they remain on the current page.
Finally the mouse let you do your thing? 😅 Nice technique for protecting routes, I don't think I realised that you could nest routes within a . Thought it had to be only 🤔
We decided to set a schedule for when he's allowed to make noise. Deal was a win win. 😁 And yea, the Routes nesting is a change made in react router V6 - Dennis Ivy
Hello any ideas why when I did this and user clicked on protected routes even though they are not logged in, a blank white page shows up for milliseconds and then redirects me to the login page
Maybe a bad question but if there is any sensitive data, isn’t the page loaded by the browser anyway ? So he could just snif the traffic and get the page even tho he is not auth ?
You seem to be using an SDK version that is compatible with Appwrite 1.5.x and not 1.4.x. You probably need to use one version before what you're currently using.
I used appwrite in my flutter app...it was smooth experience with only a problem i am having now about how to make database relationships ... Any help is appreciated...thank you
What a coincidence that this pops up as I was working on this with Appwrite today 😄
Perfect timing 😁
I don't have any words I just wanna appreciate you. Just keep spreading your valuable knowledge
😁
Insightful tutorial. Something developers might need to test is the hitting the reload button when the user is set to true. To ensure they remain on the current page.
100%
Thank You bro, less duration with more details
Really fast and efficient , thanks!
the best tutorial I fix my problem on protected route thanks sir , I hope you make a video about supabase authentication
Finally the mouse let you do your thing? 😅
Nice technique for protecting routes, I don't think I realised that you could nest routes within a . Thought it had to be only 🤔
We decided to set a schedule for when he's allowed to make noise. Deal was a win win. 😁
And yea, the Routes nesting is a change made in react router V6 - Dennis Ivy
I'm so lucky to found your video ❤
😁
easy fast efficient, thanks a lot sir
Hello any ideas why when I did this and user clicked on protected routes even though they are not logged in, a blank white page shows up for milliseconds and then redirects me to the login page
Thank U sooooo much GOD Bless You
What vs code theme is that? :O
Maybe a bad question but if there is any sensitive data, isn’t the page loaded by the browser anyway ? So he could just snif the traffic and get the page even tho he is not auth ?
beautifully explained
Glad you liked it :) - Dennis Ivy
amazing, thank you very much
😉
Why am I getting Uncaught Error: You cannot render a inside another . You should never have more than one in your app.
Because you put *, but you need, but you need , remove the "R" in the nested Route. -Dennis Ivy
Pretty accurate 👍🏻
cam on thay Hoang
nice tutorial, great voice👍
Thanks ❤
great video, but, how do i protect auth routes?
thank you show much
My pleasure! - Dennis Ivy
Is there any issue with the appwrite 14.x version its showing error in createEmailPasswordSession()
You seem to be using an SDK version that is compatible with Appwrite 1.5.x and not 1.4.x. You probably need to use one version before what you're currently using.
In protecting routes i can use loaders?
From what I understand, loaders can only be used if you create your routes with "createBrowserRouter", but either way, this would work the same.
What is that vs code theme ?
Halcyon Theme
I used appwrite in my flutter app...it was smooth experience with only a problem i am having now about how to make database relationships ...
Any help is appreciated...thank you
What if I access the login page after the user is set to true?
You would wrap the login page with a parent that doesn't render the page until this check is made. i.e. context api would do this. - Dennis Ivy
@@Appwrite thanks for the reply, will try
What if it takes 20 seconds to fetch the user?
@@Ad9911io show a loader
Best video but Appwrtite query don't work
Which one?
@@Appwriteabout listdocument
@@Appwrite about ListDocument Query
pretty cool
YOu are Awesome
😁
Great
thanksssssssssssssssssssssss
why do I get an error like this? SyntaxError: Unexpected token '
I think there is no error in my syntax
import { Navigate, Outlet } from "react-router-dom";
const PrivateRoutes = () => {
const { isLogin } = useAuth();
return isLogin ? : ;
};
export default PrivateRoutes;
Looks like you just had an extra “