1 00:00:00,550 --> 00:00:08,500 Before we push our project to production, we want to showcase one more Gotcher where if we log in with 2 00:00:08,500 --> 00:00:12,960 social connection, we are not going to be persisted across the prejudice. 3 00:00:13,290 --> 00:00:14,830 So let me show you what I mean by that. 4 00:00:15,400 --> 00:00:18,310 So I'm going to log out and then I'm going to log in first. 5 00:00:18,430 --> 00:00:19,600 We then e-mail. 6 00:00:20,170 --> 00:00:24,700 So we're going to go back here to John and we're going to log in. 7 00:00:25,250 --> 00:00:27,520 Everything is going to work as we expected. 8 00:00:28,030 --> 00:00:32,230 And for example, by mistake, user navigates to a Halo Bridge. 9 00:00:32,710 --> 00:00:37,240 Remember, in our setup, that should kick back the user to a four or four. 10 00:00:37,570 --> 00:00:40,160 And of course, we have an option of navigating back home. 11 00:00:40,720 --> 00:00:44,350 And if we're using the simple email, everything is fine. 12 00:00:44,860 --> 00:00:47,050 Now, we're still persisted across our pages. 13 00:00:47,500 --> 00:00:50,380 I can clearly see that I am still long in. 14 00:00:50,630 --> 00:00:52,960 However, it's not going to happen by default. 15 00:00:53,260 --> 00:00:57,100 We social connection Michoacan's that again. 16 00:00:57,100 --> 00:00:58,090 Let me log in. 17 00:00:58,530 --> 00:01:02,560 And now in this case I'm going to go to Twitter or Google, whichever you'd want. 18 00:01:02,980 --> 00:01:08,860 And if you'll try to navigate to a page, it doesn't exist. 19 00:01:09,010 --> 00:01:10,570 For example, Herot page or whatever. 20 00:01:10,900 --> 00:01:15,520 Now of course, the reason why I'm showing that is because this is not the only application you can 21 00:01:15,520 --> 00:01:16,610 use all at zero four. 22 00:01:17,020 --> 00:01:21,610 Of course, there are going to be applications where you have pages and you navigate from page the page. 23 00:01:21,940 --> 00:01:22,720 That's the whole point. 24 00:01:22,720 --> 00:01:25,570 Why I'm showing that in this case, technically wouldn't make sense. 25 00:01:25,930 --> 00:01:28,150 But notice, I navigate four or four. 26 00:01:28,200 --> 00:01:28,640 Okay. 27 00:01:29,170 --> 00:01:30,880 And now I'm automatically logged out. 28 00:01:31,540 --> 00:01:32,380 So what's up with that? 29 00:01:32,710 --> 00:01:37,660 Well, you see, by default, it's not going to be stored in a local storage and only the email and 30 00:01:37,660 --> 00:01:41,410 password is going to be stored in the off zeros member. 31 00:01:41,680 --> 00:01:42,670 So how we can fix that? 32 00:01:43,170 --> 00:01:47,330 Remember the link that I provided for auth provider API? 33 00:01:48,190 --> 00:01:53,500 Well, in this case, we can look for provider options, keep on scrolling and then one we're looking 34 00:01:53,500 --> 00:02:01,270 for is cache locations and we would want to set cache location to a local storage and not automatically 35 00:02:01,570 --> 00:02:04,960 we'll save the social connections as well. 36 00:02:05,420 --> 00:02:09,960 So let me navigate back to our project and we're looking for Index J. 37 00:02:09,980 --> 00:02:10,810 S here. 38 00:02:11,560 --> 00:02:17,980 And then we're saying cache, location and also this equal to a local storage. 39 00:02:18,340 --> 00:02:19,300 So do it this way. 40 00:02:19,810 --> 00:02:20,800 So once we save. 41 00:02:20,830 --> 00:02:21,640 Beautiful. 42 00:02:22,000 --> 00:02:23,260 Now, let's test that out. 43 00:02:23,740 --> 00:02:24,680 I have my starrer. 44 00:02:25,150 --> 00:02:28,350 I have a log in Sign-Up Option. 45 00:02:28,900 --> 00:02:33,280 Now use the Google one or Twitter whatever. 46 00:02:33,640 --> 00:02:35,200 Which our option would provide. 47 00:02:35,560 --> 00:02:38,550 And now let's try to see whether we're still logging. 48 00:02:38,890 --> 00:02:39,850 We're gonna go to hello. 49 00:02:40,120 --> 00:02:41,770 I'm going to go back home and beautiful. 50 00:02:42,280 --> 00:02:43,400 I'm still logged in. 51 00:02:43,450 --> 00:02:45,540 Which is exactly what I wanted. 52 00:02:45,970 --> 00:02:47,860 And with all our setup in place. 53 00:02:48,190 --> 00:02:51,070 Cause now we can push our project to production. 54 00:02:51,400 --> 00:02:56,220 More specifically, will host it on the awesome provider called NECROPHILE.