Book Image

Ionic Cookbook

By : Hoc Phan
Book Image

Ionic Cookbook

By: Hoc Phan

Overview of this book

Table of Contents (18 chapters)
Ionic Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Configuring a Twitter app with Firebase authentication


To authenticate using Twitter, Firebase also requires API Key and API Secret from your Twitter app. Firebase will take care of the communication and return the user object.

Getting ready

This is a straightforward process if you have already gone through the Facebook integration. It's similar to Twitter.

How to do it...

Here are the instructions to set up your Twitter app:

  1. Log in to your Twitter account.

  2. Navigate to https://apps.twitter.com.

  3. Click on the Create New App button:

    Provide the application details. You can fill in anything for description and website as Twitter will not check for a test app. Let's name the app as ionic_firebase_test. The most important field here is the Callback URL, as it must be in the https://auth.firebase.com/v2/<YOUR-FIREBASE>/auth/twitter/callback format. Since the Firebase app name is ionicebook, the callback URL will be https://auth.firebase.com/v2/ionicebook/auth/twitter/callback, as shown in the following...