Before we push our project to production, we want to showcase one more Gotcher where if we log in with
social connection, we are not going to be persisted across the prejudice.
So let me show you what I mean by that.
So I'm going to log out and then I'm going to log in first.
We then e-mail.
So we're going to go back here to John and we're going to log in.
Everything is going to work as we expected.
And for example, by mistake, user navigates to a Halo Bridge.
Remember, in our setup, that should kick back the user to a four or four.
And of course, we have an option of navigating back home.
And if we're using the simple email, everything is fine.
Now, we're still persisted across our pages.
I can clearly see that I am still long in.
However, it's not going to happen by default.
We social connection Michoacan's that again.
Let me log in.
And now in this case I'm going to go to Twitter or Google, whichever you'd want.
And if you'll try to navigate to a page, it doesn't exist.
For example, Herot page or whatever.
Now of course, the reason why I'm showing that is because this is not the only application you can
use all at zero four.
Of course, there are going to be applications where you have pages and you navigate from page the page.
That's the whole point.
Why I'm showing that in this case, technically wouldn't make sense.
But notice, I navigate four or four.
Okay.
And now I'm automatically logged out.
So what's up with that?
Well, you see, by default, it's not going to be stored in a local storage and only the email and
password is going to be stored in the off zeros member.
So how we can fix that?
Remember the link that I provided for auth provider API?
Well, in this case, we can look for provider options, keep on scrolling and then one we're looking
for is cache locations and we would want to set cache location to a local storage and not automatically
we'll save the social connections as well.
So let me navigate back to our project and we're looking for Index J.
S here.
And then we're saying cache, location and also this equal to a local storage.
So do it this way.
So once we save.
Beautiful.
Now, let's test that out.
I have my starrer.
I have a log in Sign-Up Option.
Now use the Google one or Twitter whatever.
Which our option would provide.
And now let's try to see whether we're still logging.
We're gonna go to hello.
I'm going to go back home and beautiful.
I'm still logged in.
Which is exactly what I wanted.
And with all our setup in place.
Cause now we can push our project to production.
More specifically, will host it on the awesome provider called NECROPHILE.