All language subtitles for 006 Google Sign In Authentication_en

af Afrikaans
sq Albanian
am Amharic
ar Arabic Download
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bn Bengali
bs Bosnian
bg Bulgarian
ca Catalan
ceb Cebuano
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
tl Filipino
fi Finnish
fr French
fy Frisian
gl Galician
ka Georgian
de German
el Greek
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
km Khmer
ko Korean
ku Kurdish (Kurmanji)
ky Kyrgyz
lo Lao
la Latin
lv Latvian
lt Lithuanian
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mn Mongolian
my Myanmar (Burmese)
ne Nepali
no Norwegian
ps Pashto
fa Persian
pl Polish
pt Portuguese
pa Punjabi
ro Romanian
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
st Sesotho
sn Shona
sd Sindhi
si Sinhala
sk Slovak
sl Slovenian
so Somali
es Spanish
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
te Telugu
th Thai
tr Turkish
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
or Odia (Oriya)
rw Kinyarwanda
tk Turkmen
tt Tatar
ug Uyghur
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: 1 00:00:00,620 --> 00:00:08,450 Now that we have our fire base utility library inside of our project, let's actually set it up so that 2 00:00:08,450 --> 00:00:10,850 we can start using it in our application. 3 00:00:11,730 --> 00:00:19,830 Now, what we want to do is go into our project directory and we are going to add a new folder in our 4 00:00:19,830 --> 00:00:22,230 source called Firebase. 5 00:00:23,310 --> 00:00:29,940 Inside of this firebase, we are going to make a new file called Firebase Utils Duchies. 6 00:00:31,270 --> 00:00:40,870 Now, in order to properly use and set up our fire base, utility files or utility methods, we actually 7 00:00:40,870 --> 00:00:42,700 need that config object. 8 00:00:43,450 --> 00:00:51,160 So if you accidentally lost it somehow, I'll show you how you can navigate back to finding that configuration. 9 00:00:52,140 --> 00:01:00,150 We want to go from our dashboard to project overview, which is this page, and then you'll see this 10 00:01:00,150 --> 00:01:01,100 grid item here. 11 00:01:01,260 --> 00:01:07,850 If you click this, you'll see our application or sorry, you'll see our firebase project. 12 00:01:08,550 --> 00:01:10,170 So we want to click this. 13 00:01:11,030 --> 00:01:11,870 And then. 14 00:01:12,830 --> 00:01:21,100 Scroll down, you should see this SDK snippet with the CDN, that object that we want is right here. 15 00:01:21,830 --> 00:01:29,270 So we just want to copy this, go back to our Firebase utils and then we're going to import Firebase 16 00:01:29,270 --> 00:01:32,000 from Firebase Agap. 17 00:01:33,000 --> 00:01:41,310 So by doing this, we're pulling in the fire based utility library that belongs at this fire based app. 18 00:01:42,060 --> 00:01:48,330 Now, the reason we do firebase app is because Firebase has all of the utility libraries loaded when 19 00:01:48,330 --> 00:01:54,570 we included the entire dependency, when we installed Firebase with yarn. 20 00:01:55,170 --> 00:01:59,980 But we don't want any that we're not using because they are quite large. 21 00:02:00,210 --> 00:02:06,300 So whenever we need them, so in this case, we need off and storage. 22 00:02:07,310 --> 00:02:18,590 We can import them themselves by importing Firebase Firestar for the database and Firebase Logoff for 23 00:02:18,590 --> 00:02:19,050 the off. 24 00:02:19,850 --> 00:02:26,780 We always need the base import, though, because that keyword is going to give us access to fast or 25 00:02:26,780 --> 00:02:27,280 an author. 26 00:02:27,290 --> 00:02:34,100 When we import them in, they'll be just automatically attached to this firebase keyword. 27 00:02:35,210 --> 00:02:42,500 And then what we're want to do is we want to set our CONSED config equal to that object that we just 28 00:02:42,500 --> 00:02:49,280 stored and then we call Firebase Initialise app with that config. 29 00:02:51,660 --> 00:02:57,030 Now, what I'm about to type next will be quite a bit of code. 30 00:02:58,230 --> 00:03:03,750 It will make sense once we start using it, but because it's config, it might seem a little confusing 31 00:03:03,990 --> 00:03:08,490 because we are mainly configuring the firebase utility that we get. 32 00:03:08,880 --> 00:03:15,300 All of it is in the documentation on Firebase itself, but these are the ones that we need for Google 33 00:03:15,300 --> 00:03:16,050 authentication. 34 00:03:16,710 --> 00:03:21,750 So what we want to do is we want to export CONSED off. 35 00:03:22,600 --> 00:03:29,050 Which is equal to fire based off so when I mentioned that we imported fire based off, that is what 36 00:03:29,050 --> 00:03:32,470 we managed to get access to is the dot off method on fire base. 37 00:03:32,470 --> 00:03:37,720 And we want to export this out anywhere that we would need to use anything related to authentication. 38 00:03:38,830 --> 00:03:45,550 Next, we are also going to export the firestorm that we imported the same way that we did with the 39 00:03:45,550 --> 00:03:45,880 off. 40 00:03:46,970 --> 00:03:51,650 So we don't need this yet, but it's better for us to just export this for now. 41 00:03:52,980 --> 00:04:01,110 Now to set up our Google authentication utility, so this part is a little bit complicated, but just 42 00:04:01,110 --> 00:04:10,710 follow along, we're going to do a cost provider equals New Firebase off doc Google auth provider. 43 00:04:11,430 --> 00:04:17,310 And this gives us access to this new Google auth provider class from the authentication library. 44 00:04:18,329 --> 00:04:19,920 It takes a couple. 45 00:04:21,360 --> 00:04:24,960 Custom parameters using the custom parameters method. 46 00:04:27,420 --> 00:04:31,620 And what we want to set is prompt select account. 47 00:04:32,830 --> 00:04:40,660 What this means is that we want to always trigger the Google pop up whenever we use this Google Earth 48 00:04:40,660 --> 00:04:46,410 provider for authentication and Sinon and I'll show you what I mean when we use it. 49 00:04:47,110 --> 00:04:54,520 So we're also going to export our sign in this sign in with Google method. 50 00:04:55,590 --> 00:05:04,260 That is equal to a function that calls off a sign in with pop up because signing with pop up takes this 51 00:05:04,620 --> 00:05:11,010 provider class that we made, but it takes it for many different types of pop ups. 52 00:05:11,010 --> 00:05:11,220 Right. 53 00:05:11,250 --> 00:05:12,390 We just want the Google want. 54 00:05:12,390 --> 00:05:13,800 But there's a Twitter one. 55 00:05:13,820 --> 00:05:14,000 Right. 56 00:05:14,280 --> 00:05:17,100 There's all kinds available to us in our Sinon. 57 00:05:17,670 --> 00:05:22,590 But we just set we want to set Sinon with pop up and then we want to pass this provider through. 58 00:05:23,850 --> 00:05:24,270 Now. 59 00:05:25,690 --> 00:05:30,480 We also want to finally export default will be Firebase in case we want the whole library. 60 00:05:30,970 --> 00:05:36,850 But you know how I mentioned that there's multiple pop ups while let's actually configure our firebase 61 00:05:36,850 --> 00:05:41,180 project to allow us to use Google, sign it and I'll show you how easy that is. 62 00:05:41,800 --> 00:05:48,850 So all we do is we go back to our FIREBASE project and we click this authentication under the developer 63 00:05:49,000 --> 00:05:50,650 tag here. 64 00:05:50,660 --> 00:05:52,690 We're going to click set up Sinon method. 65 00:05:53,410 --> 00:05:57,790 And under this Google option, we just hit the edit pencil. 66 00:05:59,100 --> 00:05:59,680 Enable it. 67 00:06:00,820 --> 00:06:02,350 Will select the email. 68 00:06:03,350 --> 00:06:11,330 That we want project support to have, right, so in case anything goes wrong with Firebase at all for 69 00:06:11,330 --> 00:06:14,960 anything related to support, they're going to send it to this email that you have here. 70 00:06:14,970 --> 00:06:20,810 And usually it's the email from your Google account that you used to sign into Firebase. 71 00:06:21,530 --> 00:06:28,820 We just hit Save and now it's enabled we have often enabled for our project using Google. 72 00:06:29,660 --> 00:06:34,630 And now we're going to use this sign in with Google inside of our sign and component. 73 00:06:35,270 --> 00:06:36,710 So we're going to import it in. 74 00:06:38,620 --> 00:06:40,870 Sign with Google from. 75 00:06:43,130 --> 00:06:51,590 Firebase Firebrace utils, get rid of that dogs and to see how easy it is, we just are going to copy 76 00:06:51,590 --> 00:06:52,160 our button. 77 00:06:53,290 --> 00:06:54,600 Remove type, submit. 78 00:06:55,720 --> 00:06:58,270 And fire a unclick. 79 00:06:59,170 --> 00:07:03,820 That calls our Sinon with Google method, and now if we do sign in with Google. 80 00:07:05,010 --> 00:07:08,760 Whenever we click it, our button in our application. 81 00:07:09,800 --> 00:07:10,730 So let's refresh. 82 00:07:11,800 --> 00:07:15,910 We see our button, we click it, and there's the Google prompt. 83 00:07:17,290 --> 00:07:23,620 It will load any Google accounts that we already have or the users already signed in with, and we select 84 00:07:23,620 --> 00:07:29,470 it and Firebase will handle the authentication there just like that. 85 00:07:29,470 --> 00:07:32,610 We have authentication with Google tied in to our application. 86 00:07:33,100 --> 00:07:38,900 But how do we actually utilize these users that Firebase is logging in with? 87 00:07:39,370 --> 00:07:41,080 Well, let's do that right now. 8577

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.