Posts

Showing posts from October 6, 2017

Email and password based authentication with Firebase in Swift

Image
Firebase  Authentication gives us backend services to authenticate users with your app. It provides SDKs and ready-made UI libraries. It supports authentication using passwords, and other providers like Google, Facebook and Twitter, Github, and more. Steps to configure your app with Firebase Open  Firebase Console Create new project over there Create new app into the project You will be getting GoogleService-Info.plist file from settings Add it to the project Add just one line to configure your app  FIRApp.configure() import UIKit import Firebase @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { FIRApp.configure() return true } } Let’s step with Firebase Authentication Step 1. Enable Email an...