Skip to content
This repository has been archived by the owner. It is now read-only.
No description, website, or topics provided.
Objective-C Ruby
Branch: master
Clone or download
samtstern Prepare for archiving (#25)
* Prepare for archiving

* Line break
Latest commit 061e07e Aug 25, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
Login Demo.xcodeproj Revert "Revert "Clean up"" May 27, 2015
Login Demo.xcworkspace
Login Demo
Login DemoTests Revert "Revert "Clean up"" May 27, 2015
Simple Login Demo Added two files to preserve links from the website. May 27, 2015
LICENSE Create LICENSE Sep 12, 2014
Podfile Switched out Google+ login with generic Google login Jul 7, 2015

Status: Archived

This repository has been archived and is no longer maintained.

status: inactive

This is a legacy Firebase example (for SDK 2.x.x). You probably want to use one of the up-to-date examples at

Login Demo for iOS

This is a demo of using Firebase's authentication features in your iOS app. It focuses on using OAuth with Google, Facebook, or Twitter, as well as anonymous authentication. Note that Firebase also supports authentication with email & password and custom auth tokens. You can read the full iOS authentication guide here.

This demo requires that CocoaPods is installed.

Running the Demo

To download and setup all necessary SDKs, run:

pod install

Next, open Login Demo.xcworkspace in XCode (not Login Demo.xcodeproj, since you need to include the Cocoapod dependencies).

You'll then need to edit the file Login Demo/ViewController.m and specify the Firebase app you're using as well as your Twitter API key. To setup Facebook auth, you'll need to open Supporting Files/Info.plist. and set FacebookAppID and FacebookDisplayName as well as configure a URL Scheme to match your App ID. To setup Google auth, you'll need to create and add a GoogleService-Info.plist from here as well as configure a URL Scheme to match your Reversed Client ID.

Don't forget to enable the relevant OAuth providers in your Firebase app.

Finally, run the demo app in XCode!

You can’t perform that action at this time.