The chair

i had this chair in school which I sat at n the entire year and since I liked the fresh chair I wrote my name on the bottom and the back so no ones tries to u know take it away from me also known as…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




How to Integrate Google Sign In with Firebase

2. Enable Google sign-in in your Firebase console:

a. Open your GoogleService-Info.plist inside Xcode:

2. Configure the FirebaseApp object inside your project’s App Delegate:

a. First import Firebase and GoogleSignIn in your project

b. In your app delegate’s application:didFinishLaunchingWithOptions: method, configure the FirebaseApp object.

c. Implement the application:openURL:options: method of your app delegate.

3. Create Google Sign In button in your view controller:

a. Create a button with the GIDSignInButton type

b. Add the created button as an subview in your viewDidLoad().

c. Give your button a width and height in your controllers viewDidLayoutSubviews()

d. Give your button a target to start executing the Sign In process in viewDidLoad()

4. Implement Sign In on button tap:

a. Import FirebaseAuth and GoogleSignIn inside your controller

b. Create the didTapGID function to handle our Sign In. Create clientID from your Firebase App and create a config object with type GIDConfiguration and pass in the clientID.

c. Start the Sign In process with the Configuration object create in the previous step. Get the accessToken and idToken and create an credential object that will be used to Sign In to Firebase.

d. Now Sign In to Firebase using Firebase Auth and the credential object that we created in the previous step.

Add a comment

Related posts:

Healthcare Transformation in the U.S.

Healthcare is undergoing a transformation in the US. Driven by several factors, including the fact that costs are not only rising every year but comprises 30% of the national budget. This is due to…

Night Terrors

Last night around midnight my 4-year-old woke up with a night terror. These are very rare now. He was thrashing about. He couldn’t hear me. He was very angry and maybe felt that he was in pain. He…

Intermittent Fasting For Mental Clarity

I always thought that breakfast was the most important meal of the day. Cliché, I know. This information is drilled into us growing up and sticks with us as we get older. But for most of my life, I…