Skip to playerSkip to main content
  • 3 months ago
এই ভিডিওতে আমরা দেখিয়েছি কিভাবে Firebase এর onAuthStateChanged ব্যবহার করে user login/logout state automatically track করা যায়।

এটি Auth সিরিজের Part 5, যেখানে আমরা Auth System কে আরও Real-world friendly করেছি।

🎯 In this video you will learn:

What is onAuthStateChanged

useEffect দিয়ে auth state manage

Automatically detect logged-in user

Persist user state after page reload

Centralized auth handling using Context API

👉 Next (Final) Video: Loading state handle & login এর পরে auto navigate

Category

📚
Learning
Transcript
00:00Assalamualaikum
00:02Last video was released in the video
00:04This was the first time
00:06It was the first time
00:08In the last time we used
00:10Use effect
00:12We used to cast
00:14What is cast
00:16What is cast
00:18What is cast
00:20How is cast
00:22On and set
00:24Does this
00:26This is used
00:28I found this site for using the file app and the screws are not on the web.
00:33This is a google app, you can also send the user to the file app and the file app.
00:48This is a picture of hand and yes it will be saved.
00:52because the home air with a jaya it up a user by chance I can talk to say
00:56terminology that is a jammer it into money the key political jay on a
01:02busy memory liquid is it is it to a turn car only I'm legit a purpose to
01:07touch my use effect are useful because a fire with us on fire with jay or
01:11fire with observation data say did I'm right use could see basically I'm
01:15under for a bit of a jay can a fire was on of stretch ends aging history am
01:20ਸ્તહરામાર પીલે ખેકટર ભીતોરએ નીયાબ હામામામામામામામામામામામામામામામ હીલોંદ હામામા�
01:50It means that you will have to use a layout.
01:54Actually, when you take a user to logout,
02:01you will也可以 live and you will have to use a listener to search.
02:07You will now logout,
02:13there will be an internet server,
02:15Now, we will observe all os and see the results of our website.
02:20If you have the results of the user, you will see the results of these functions of the user.
02:27So, if you have the results of the user, you will see the performance on our website.
02:32So, it is very helpful to see how the user's performance is.
02:35I will use effect.
02:40Use effect.
02:43Use effect.
02:44This is basically react.
02:45This is very powerful.
02:48This is the first thing to do.
02:51This is the dependency.
02:53This is the dependency list.
02:56So, dependency list.
02:58Dependency list is the same.
03:00This is the dependency list.
03:02That leaves and effects.
03:03brackify.
03:04This is the dependency list.
03:07and function tori qolam and air bhi tore a aamra aamadher ijhe ii variable declar kori const
03:17dharan basically log john unsubscribe nami unsubscribe nami ho chater a deklar kore
03:24variable taha and iter bhi tore aamra kiki kore ba hi on auth state changed eta ke nia aspo
03:30and iter bhi tore aamra jaaniki dae uth thakye actor yoo upura yaashe auth and eakhani
03:34Directed via Parental function return.
03:42This is how we will go on here.
03:44There is a function we will return.
03:48Select the console.
03:52Right.
03:53I will show you the current user.
03:56I will show you the current user Again, and I will show you the current user,
04:05corresponding To return
04:07return
04:16return
04:17return
04:18return
04:20return
04:20return
04:22And subscribe and subscribe
04:28I will check out what's the way I can do
04:34At the top of the top of the top of my head
04:37This is the fifth step
04:39This is the third step
04:44This is the third step
04:47The third step is the third step
04:51it power go see because i'm going to delete query login and i'm going to reload query to
04:56result for a minute to see a device yes it or provider take a i'm not going to buy this
05:01console local origin from the idea i'm using the link to later the
05:04color of the demo console of the current user again they make an agent uh use effect
05:12yes effect use for lamp because i use the videos column like lamp airport
05:18was the ammaomina and things about the name it is a little not here i'm going to be
05:24today darei and i can't tell you about the key a ee'e koi koi koi it will be the day
05:29right key archer as the way global but dilemma later about it can't believe the
05:34size use effect you score to get it so it again to radius okay ci i'm not get a
05:39cool issue touch a amra i today i'm other is it's aSmong that will be up Porco
05:45is
05:50great
05:51I could
05:54I got a
05:55plain
05:59I
06:01have
06:03I
06:04have
06:05I
06:07have
06:08ここで user names like set user
06:13user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user user
06:43current user current user current user bus on the cast is a bar I'm not it a
06:48check on the other use put the one yes it's already got the body I'm not
06:52looking at the most recent issue to reload they are still a check we are
06:58a user user to publish a user she has a policy user can tell I'm rather
07:02normally I'm not clear I'm not sure I'm not sure I'm not sure I'm not
07:05never at the key number going on the number is a number just never asked
07:09no
07:15no
07:25I will see that the user is not going to do this, and the user is not going to do this.
07:38If you are not going to do this, I will see that the user is not going to do this.
07:45is that we set null
07:49this here we set null
07:51this here we set null
07:54before we set null
07:55we set null
07:59so when we set null
08:00this will beputable
08:02here we set null
08:05this will be null
08:07this is the case
08:10, if we do not
08:12use it
08:13foreign
08:27foreign
08:33foreign
08:43It's important that it is not good that all cars and they can be easily
08:47So, this is an example for another person
08:51So, basically we will find this has to be a way to add
08:55I might use this button, so I could use the button
08:58So, we are able to create a specific button
09:00So, when I use this button and I will store our buttons
09:02This button allows us to create a specific button
09:04You can have a specific button
09:06So, to use this button, you can add the button
09:10I'm not a condition the I can't believe I'm not a condition I can't believe I'm not a condition
09:22I'm going to show you how to use our duty to use our duty to tell you I'm route to
09:26you and I'm going to show you I'm going to study the body sign out sign out are to
09:33the not okay do the not okay I'm ready I'm ready to run a car link but it's a very link link
09:41there's a lot I think that's right link to to be sure I'm right I'm gonna be much less
09:47I can sign out
09:54I can sign out
09:59I can sign out
10:04I can sign out
10:08so sign out, click on the right button to sign out
10:10that's how we can get this button
10:11then we can send theadan to the center button
10:13to the left button
10:16and also the option
10:19on the right button
10:22to signup, new user
10:24signin
10:25observer user
10:27signout
10:30if we don't know
10:32signin user
10:34here
10:34the user profile
10:36here for user provider user profile user email address user verification email user password user password reset email
10:43I say no one is also deleted user re-authentication user a chaput I go sign out I guess a sign out I'm not
10:51a sign in a sign out which is a password authentication sign in with Google it on it on it on I am other sign in with
11:01the preview UI preview I want to get study I can either got a optional by firebase local sign up new user sign in
11:12sign out sign out sign out that I am not going to say sign out as a house I'm not going to say
11:23I'm not going to say I'm not going to say that I'm wrong with a password authentication is a password
11:32authentication is a true human to say sign in a user recommended set password policy password
11:39the next step is sign out
11:42sign out
11:43sign out
11:45variable
11:46auth
11:47get auth
11:49sign out
11:51then
11:52then
11:53blank
11:54sign out
11:55success
11:56and
11:57error
11:59simple
12:01simple
12:02now
12:03we need to add
12:04auth
12:05provider
12:06auth
12:07author
12:08variable
12:09const
12:10sign out
12:12user
12:13sign out
12:14user
12:15name
12:16return
12:17return
12:18return
12:20return
12:21return
12:22return
12:23return
12:28return
12:29return
12:30foreign
12:37foreign
12:42foreign
12:47foreign
12:52foreign
12:57સીલે પરા આમરા સાઈણ આઉટ યુજાર એકા જેકોન જાગે યુજ કોતે પરું તમરા નિપરે છીલામ નિપરે છેલા�
13:27સામરા યુ૜ કોરે ચાઇ તેલે જાય જાઈ તાય્લે જાઈ મનાણ ય૜ેએ સેલાય જેદ્લામરાં તાયોથદે જેખેન�
13:57I'm going to add the button with a mother is a sign out for a sign out and I can I'm wrong
14:03chair to on click beside the on click on clicker handle sign out of the video
14:10bus a bar on rider video a mother is a sign out user as a sign out user it on the call
14:16.
14:18.
14:23.
14:32.
14:33.
14:36.
14:37.
14:39.
14:41.
14:44console lock the dillam huch che sign out success sign out success
14:51thayas error dillam tair para judei aamra kono error kai taili aamra catch kore dillam cot ch catch
14:58cot ch catch dillam eir para chhe eekhano judei aamra kono error kai taili aamra kiko
15:06konzo log kora dhyda cnj console log error baos aamra carch hche eekhano ee button bbash
15:19baisy jamasut eisajayi aiekhano eekhanog hkeone eekhanog judei sign out eek click ok
15:24thayasiteringo login pacool last chayashe eba login eek click lol log in hojitos na login
15:30page dillamareos aamie joe bhi hoomeo thakki aamie log in eek click kore thayashe log in page
15:34so
15:38password
15:45login
15:50password
15:54password
15:56and
15:58I
16:00I
16:02I
16:04I
16:06I
16:08I
16:10I
16:12I
16:14I
16:16I
16:18I
16:20I
16:22I
16:24I
16:26I
16:28I
16:30I
16:32I
16:34I
16:36I
16:38I
16:40I
16:42I
16:44I
16:46I
16:48I
16:50I
16:52I
16:54I
16:56I
16:58I
17:00I
17:02I
17:04I
17:06I
17:08I
17:10I
17:12I
17:14I
17:16I
17:18I
17:20I
17:22I
17:24I
17:26I
17:28I
17:30I
17:32I
17:34I
17:36I
17:38I
17:40I
17:42I
17:44I
17:46I
17:48I
17:50I
17:52I
17:54I
17:56I
17:58I
18:00I
18:02I
18:04I
18:06I
18:08I
18:10I
18:12I
18:14I
18:16I
18:18I
18:20I
18:22I
18:24I
18:26I
18:28I
18:30I
18:32I
18:34I
18:36I
18:38I
18:40I
18:42I
18:44I
18:46I
18:48I
18:50I
18:52I
18:54I
18:56I
18:58I
19:00I
19:02I
19:04I
19:06I
19:08I
19:10I
19:12I
19:14I
19:18I
19:32I
19:34Profile I am in the background using the pages, and also the details of the file.
19:40Profile I am in the background using the profile.
19:43Jsx enter, I am here with rsc and nornomally,
19:47I am in the background using h1, this is profile page.
19:52We need to see how many things are for it,
19:56because we need to add, so we need to add the route.
19:59So, I am going to add the route to the route.
20:02and
20:04a
20:06a
20:08a
20:10a
20:12a
20:14a
20:16a
20:18a
20:20a
20:22a
20:24a
20:26a
20:28a
20:30a
20:32a
20:34a
20:36a
20:38a
20:40a
20:42a
20:44a
20:46a
20:48a
20:50a
20:52a
20:54a
20:56a
20:58a
21:00a
21:02a
21:04a
21:06a
21:08a
21:10a
21:12a
21:14a
Comments

Recommended