{"id":1460,"date":"2018-01-16T13:45:51","date_gmt":"2018-01-16T13:45:51","guid":{"rendered":"https:\/\/www.moveoapps.com\/blog\/?p=1460"},"modified":"2019-09-25T11:19:46","modified_gmt":"2019-09-25T11:19:46","slug":"how-to-code-for-firebase-authentication-in-swift","status":"publish","type":"post","link":"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/","title":{"rendered":"How to Code for Firebase Authentication in Swift \u2013 The Quick and Easy Guide"},"content":{"rendered":"<p class=\"p1\"><span class=\"s1\">Every app needs to know the identity of its users. That is how an app can collect data, personalize services and provide value. That is why a good authentication service is imperative to the development of an app. <\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">Firebase Authentication gives you the complete package that enables you to sign up or sign in your users, monetize your app and collect data. <\/span><\/p>\n<p class=\"p1\"><span class=\"s1\">Firebase gives you the tools to develop high-quality apps, grow your user base, and earn more money. Firebase supports Android, iOS, Web, C++ and Unity platforms. They cover the essentials so you can monetize your business and focus on your users.<\/span><\/p>\n<p>Firebase has a bevy of tools for development, authentication, testing and growing your product to the audience.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1470\" src=\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/001_FirebaseProducts.png\" alt=\"\" width=\"1273\" height=\"829\" srcset=\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/001_FirebaseProducts.png 1273w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/001_FirebaseProducts-300x195.png 300w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/001_FirebaseProducts-768x500.png 768w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/001_FirebaseProducts-1024x667.png 1024w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/001_FirebaseProducts-150x98.png 150w\" sizes=\"auto, (max-width: 1273px) 100vw, 1273px\" \/><\/p>\n<h1 class=\"p1\"><span class=\"s1\">Let\u2019s talk about Firebase Authentication<\/span><\/h1>\n<p class=\"p2\"><span class=\"s1\">Firebase Authentication provides easy-to-use SDKs, backend services, and ready-made UI libraries for a complete authentication solution for your app. It supports authentication using passwords, phone numbers, email, Google, Facebook and Twitter, and more.<\/span><\/p>\n<h3 class=\"p1\"><span class=\"s1\">Implementation Steps <\/span><\/h3>\n<ol class=\"ol1\">\n<li class=\"li2\"><span class=\"s1\"><b>Enable sign-in methods:<\/b> Enable sign-in methods which are available in firebase console.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1473\" src=\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/002_FirebaseAuthenticationSetup.png\" alt=\"\" width=\"1902\" height=\"855\" srcset=\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/002_FirebaseAuthenticationSetup.png 1902w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/002_FirebaseAuthenticationSetup-300x135.png 300w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/002_FirebaseAuthenticationSetup-768x345.png 768w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/002_FirebaseAuthenticationSetup-1024x460.png 1024w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/002_FirebaseAuthenticationSetup-150x67.png 150w\" sizes=\"auto, (max-width: 1902px) 100vw, 1902px\" \/><\/span><\/li>\n<li class=\"li2\"><span class=\"s1\"><b>Design User Interface flows for your sign-in methods:<\/b> Based on the sign-in method being used, you will need to customize the application flow and user interface. For password based login, the app will need to display fields like email and password and if you are going with phone number based authentication then user interface should be customized for phone number entry and verification of the code which is sent to user\u2019s phone.<\/span><\/li>\n<li class=\"li2\"><span class=\"s1\"><b>Integrate Firebase SDK and code for Authentication:<\/b> Pass the desired information to the Firebase Authentication SDK to create user id or to login.<\/span><\/li>\n<\/ol>\n<h3 class=\"p1\"><span class=\"s1\">Basic Requirements to start with Firebase<\/span><\/h3>\n<p class=\"p3\"><span class=\"s1\">Before you start, you need a few things set up in your environment:<\/span><\/p>\n<ul class=\"ul1\">\n<li class=\"li3\"><span class=\"s1\">Xcode 8.0 or later<\/span><\/li>\n<li class=\"li3\"><span class=\"s1\">An Xcode project targeting iOS 8 or above<\/span><\/li>\n<li class=\"li3\"><span class=\"s1\">Swift projects must use Swift 3.0 or later<\/span><\/li>\n<li class=\"li3\"><span class=\"s1\">CocoaPods 1.2.0 or later<\/span><\/li>\n<\/ul>\n<h3 class=\"p1\"><span class=\"s1\">Add Firebase to your project<\/span><\/h3>\n<p class=\"p3\"><span class=\"s1\">To add Firebase to your app, you will need a Firebase project and a Firebase configuration file for your application.<\/span><\/p>\n<ol class=\"ol1\">\n<li class=\"li3\"><span class=\"s1\">Create a project in <a href=\"https:\/\/console.firebase.google.com\/\"><span class=\"s2\">firebase console<\/span><\/a> by logging in to your Google account.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1474\" src=\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/003_AddProject.png\" alt=\"\" width=\"1920\" height=\"911\" srcset=\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/003_AddProject.png 1920w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/003_AddProject-300x142.png 300w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/003_AddProject-768x364.png 768w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/003_AddProject-1024x486.png 1024w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/003_AddProject-150x71.png 150w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/span><\/li>\n<li class=\"li3\"><span class=\"s1\">Select platform (iOS, Android or Web) after creation of the project. By clicking on iOS you will be prompted to add application information like iOS bundle ID and other information, including optional fields.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1475\" src=\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/004_Add_Firebase_iOS_App.png\" alt=\"\" width=\"1904\" height=\"903\" srcset=\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/004_Add_Firebase_iOS_App.png 1904w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/004_Add_Firebase_iOS_App-300x142.png 300w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/004_Add_Firebase_iOS_App-768x364.png 768w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/004_Add_Firebase_iOS_App-1024x486.png 1024w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/004_Add_Firebase_iOS_App-150x71.png 150w\" sizes=\"auto, (max-width: 1904px) 100vw, 1904px\" \/><\/span><\/li>\n<li class=\"li3\"><span class=\"s1\">After setting up the platform, you will see an option to download a <i>GoogleService-Info.plist<\/i> file. Go ahead and add this file to your project.<\/span><\/li>\n<\/ol>\n<h3 class=\"p1\"><span class=\"s1\">Install SDK for Firebase and Authentication<\/span><\/h3>\n<p class=\"p3\"><span class=\"s1\">The easiest way to install the SDK is by using Cocoapods dependency manager.<\/span><\/p>\n<p><span class=\"s1\">\u00a01. Go to your project directory from terminal.<\/span><\/p>\n<pre class=\"p4\"><span class=\"s1\">$ cd your-project directory<\/span><\/pre>\n<p><span class=\"s1\">2. Create a Podfile (If you already have a pod file, you can skip this step)<\/span><\/p>\n<pre class=\"p4\"><span class=\"s1\">$ pod init<\/span><\/pre>\n<p><span class=\"s1\">3. Open the Podfile and add the pods in the file that you wish to install. Like this:<\/span><\/p>\n<pre class=\"p4\"><span class=\"s1\">pod 'Firebase\/Core'<\/span>\r\n<span class=\"s1\">pod 'Firebase\/Auth'<\/span><\/pre>\n<p><span class=\"s1\">4. Install the pods from terminal and open the .xcworkspace file to see the project in Xcode.<\/span><\/p>\n<pre class=\"p4\"><span class=\"s1\">$ pod install<\/span>\r\n<span class=\"s1\">$ open your-project.xcworkspace<\/span><\/pre>\n<h3 class=\"p1\"><span class=\"s1\">Configure Firebase App in Swift<\/span><\/h3>\n<p class=\"p3\"><span class=\"s1\">After opening workspace you have to initialize and configure with Firebase App.<\/span><\/p>\n<ol class=\"ol1\">\n<li class=\"li3\">Import Firebase module in your Application Delegate file:<\/li>\n<pre class=\"p4\">import Firebase<\/pre>\n<li class=\"li3\">Configure Firebase App in your application&#8217;s <i>application:didFinishLaunchingWithOptions:<\/i> method (It will be communicated with the <i>GoogleService-Info.plist<\/i> file):<\/li>\n<\/ol>\n<pre class=\"p4\"><span class=\"s1\">FirebaseApp.configure()<\/span><\/pre>\n<h3 class=\"p1\"><span class=\"s1\">Create New User \/ Sign Up Process<\/span><\/h3>\n<p class=\"p3\"><span class=\"s1\">There is a function in Firebase Authentication to create the user in the firebase system.<\/span><\/p>\n<pre class=\"p4\">Auth.auth().createUser(withEmail: \"user@email.com\", password: \"PASSWORD******\") { (user, error) in\r\n \u00a0\u00a0\u00a0if let error = error {\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0print(error.localizedDescription)\r\n \u00a0\u00a0\u00a0}\r\n \u00a0\u00a0\u00a0else if let user = user {\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0print(\"Sign Up Successfully. \\(user.uid)\")\r\n \u00a0\u00a0\u00a0}\r\n}<\/pre>\n<p class=\"p5\"><span class=\"s1\">This is where you will need to enter email and password as parameters and you will get error or user object in response. After completing the signup process, the user would already be logged in to the system. <\/span><\/p>\n<h3 class=\"p1\"><span class=\"s1\">Sign In \/ Login Process<\/span><\/h3>\n<p class=\"p3\"><span class=\"s1\">There is a function in Firebase Authentication to sign in from the app to the firebase system.<\/span><\/p>\n<pre class=\"p4\">Auth.auth().signIn(withEmail: \"user@email.com\", password: \"PASSWORD******\") { (user, error) in\r\n \u00a0\u00a0\u00a0if let error = error {\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0print(error.localizedDescription)\r\n \u00a0\u00a0\u00a0}\r\n \u00a0\u00a0\u00a0else if let user = user {\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0print(user.uid)\r\n \u00a0\u00a0\u00a0}\r\n}<\/pre>\n<h3 class=\"p1\"><span class=\"s1\">Get User Information<\/span><\/h3>\n<p class=\"p3\"><span class=\"s1\">After completing the sign up or sign in process, we can get the user information. We can access the current user object using the following code:<br \/>\n<\/span><\/p>\n<pre class=\"p3\"><span class=\"s2\">let currentUser = Auth.auth().currentUser<\/span>\r\n<span class=\"s1\">print(currentUser.uid)<\/span><\/pre>\n<p class=\"p3\"><span class=\"s1\">You can get more information like <\/span><em><span class=\"s2\">email<\/span><\/em><span class=\"s1\">, <\/span><em><span class=\"s2\">displayName<\/span><\/em><span class=\"s1\">, and <\/span><em><span class=\"s2\">photoURL<\/span><\/em><span class=\"s1\"> from the user object itself. To get that, we need to update the user information using the code<br \/>\n<\/span><\/p>\n<pre class=\"p3\">if let user = user {\r\n \u00a0let uid = user.uid\r\n \u00a0let email = user.email\r\n \u00a0let photoURL = user.photoURL\r\n}<\/pre>\n<h3>Update User Information<\/h3>\n<p class=\"p3\"><span class=\"s1\">We can update user information by creating a profile change request.<\/span><\/p>\n<pre class=\"p3\">let changeRequest = Auth.auth().currentUser?.createProfileChangeRequest()\r\nchangeRequest?.displayName = \"Carter Keneth\"\r\nchangeRequest?.commitChanges(completion: { (error) in\r\n \u00a0\u00a0\u00a0if let error = error {\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0print(error.localizedDescription)\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0self.view.makeToast(error.localizedDescription)\r\n \u00a0\u00a0\u00a0}\r\n})<\/pre>\n<p class=\"p3\"><span class=\"s1\"><br \/>\nIf you wish to update the\u00a0<\/span><em><span class=\"s2\">photoURL<\/span><\/em><span class=\"s1\"> then you have to give a URL of an image which is hosted to any web server or you can also use Firebase Storage to upload the user\u2019s profile picture.<\/span><\/p>\n<h3 class=\"p1\"><span class=\"s1\">Logout \/ Sign Out User<\/span><\/h3>\n<p class=\"p3\"><span class=\"s1\">Firebase provides API to logout from the application session.<\/span><\/p>\n<pre class=\"p3\">if Auth.auth().currentUser != nil {\r\n \u00a0\u00a0\u00a0do {\r\n \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0try Auth.auth().signOut()\r\n \u00a0\u00a0\u00a0}\r\n \u00a0\u00a0\u00a0catch {\r\n \u00a0\u00a0\u00a0}\r\n}<\/pre>\n<h3 class=\"p1\"><span class=\"s1\">Find The List of Users<\/span><\/h3>\n<p class=\"p3\"><span class=\"s1\">You can access the list of users from the firebase console.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1480\" src=\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/005_Firebase_UserList.png\" alt=\"\" width=\"1918\" height=\"560\" srcset=\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/005_Firebase_UserList.png 1918w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/005_Firebase_UserList-300x88.png 300w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/005_Firebase_UserList-768x224.png 768w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/005_Firebase_UserList-1024x299.png 1024w, https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/005_Firebase_UserList-150x44.png 150w\" sizes=\"auto, (max-width: 1918px) 100vw, 1918px\" \/><\/p>\n<p class=\"p9\"><span class=\"s1\">From the console, you can perform operations like reset password, disable account and delete account.<\/span><\/p>\n<h1 class=\"p10\"><span class=\"s1\">Conclusion<\/span><\/h1>\n<p class=\"p3\"><span class=\"s1\">Firebase happens to be the best tool for authentication. This article will help you gain a basic understanding of getting started with Firebase and authentication. Using this as a starting point, you can implement sign in, sign up, update user information and logout functionalities using Firebase. <\/span><\/p>\n<p class=\"p3\"><span class=\"s1\">Thanks for reading, Hope you liked the article.<\/span><\/p>\n<p class=\"p3\"><span class=\"s1\">Happy Coding!<\/span><\/p>\n<p><script type=\"text\/javascript\" src=\"\/\/newsharecounts.s3-us-west-2.amazonaws.com\/nsc.js\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Every app needs to know the identity of its users. That is how an app can collect data, personalize services and provide value. That is why a good authentication service is imperative to the development of an app. Firebase Authentication gives you the complete package that enables you to sign up or sign in your &hellip; <a href=\"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to Code for Firebase Authentication in Swift \u2013 The Quick and Easy Guide<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":101027,"featured_media":1559,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[30],"tags":[],"class_list":["post-1460","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ios"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Quick and Easy Guide on how to Code for Firebase Authentication in Swift<\/title>\n<meta name=\"description\" content=\"Firebase gives you the tools to develop high-quality apps, grow your user base, and earn more money. It supports Android, iOS, Web, C++ and Unity platforms.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Quick and Easy Guide on how to Code for Firebase Authentication in Swift\" \/>\n<meta property=\"og:description\" content=\"Firebase gives you the tools to develop high-quality apps, grow your user base, and earn more money. It supports Android, iOS, Web, C++ and Unity platforms.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/\" \/>\n<meta property=\"og:site_name\" content=\"Moveo Apps\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-16T13:45:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-09-25T11:19:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/How-to-Code-for-Firebase-Authentication-in-Swift-\u2013-The-Quick-and-Easy-Guide.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1294\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Gunjan Bhavsar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gunjan Bhavsar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/\",\"url\":\"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/\",\"name\":\"Quick and Easy Guide on how to Code for Firebase Authentication in Swift\",\"isPartOf\":{\"@id\":\"https:\/\/www.moveoapps.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/How-to-Code-for-Firebase-Authentication-in-Swift-\u2013-The-Quick-and-Easy-Guide.png\",\"datePublished\":\"2018-01-16T13:45:51+00:00\",\"dateModified\":\"2019-09-25T11:19:46+00:00\",\"author\":{\"@id\":\"https:\/\/www.moveoapps.com\/blog\/#\/schema\/person\/f78d302c017914e7aaa78d6c0b8fa805\"},\"description\":\"Firebase gives you the tools to develop high-quality apps, grow your user base, and earn more money. It supports Android, iOS, Web, C++ and Unity platforms.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/#primaryimage\",\"url\":\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/How-to-Code-for-Firebase-Authentication-in-Swift-\u2013-The-Quick-and-Easy-Guide.png\",\"contentUrl\":\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/How-to-Code-for-Firebase-Authentication-in-Swift-\u2013-The-Quick-and-Easy-Guide.png\",\"width\":2560,\"height\":1294,\"caption\":\"How to Code for Firebase Authentication in Swift\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.moveoapps.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Code for Firebase Authentication in Swift \u2013 The Quick and Easy Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.moveoapps.com\/blog\/#website\",\"url\":\"https:\/\/www.moveoapps.com\/blog\/\",\"name\":\"Moveo Apps\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.moveoapps.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.moveoapps.com\/blog\/#\/schema\/person\/f78d302c017914e7aaa78d6c0b8fa805\",\"name\":\"Gunjan Bhavsar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.moveoapps.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2019\/09\/Gunjan-Bhavsar-96x96.jpg\",\"contentUrl\":\"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2019\/09\/Gunjan-Bhavsar-96x96.jpg\",\"caption\":\"Gunjan Bhavsar\"},\"sameAs\":[\"https:\/\/www.moveoapps.com\/\"],\"url\":\"https:\/\/www.moveoapps.com\/blog\/author\/gunjan-bhavsar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Quick and Easy Guide on how to Code for Firebase Authentication in Swift","description":"Firebase gives you the tools to develop high-quality apps, grow your user base, and earn more money. It supports Android, iOS, Web, C++ and Unity platforms.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/","og_locale":"en_US","og_type":"article","og_title":"Quick and Easy Guide on how to Code for Firebase Authentication in Swift","og_description":"Firebase gives you the tools to develop high-quality apps, grow your user base, and earn more money. It supports Android, iOS, Web, C++ and Unity platforms.","og_url":"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/","og_site_name":"Moveo Apps","article_published_time":"2018-01-16T13:45:51+00:00","article_modified_time":"2019-09-25T11:19:46+00:00","og_image":[{"width":2560,"height":1294,"url":"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/How-to-Code-for-Firebase-Authentication-in-Swift-\u2013-The-Quick-and-Easy-Guide.png","type":"image\/png"}],"author":"Gunjan Bhavsar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Gunjan Bhavsar","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/","url":"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/","name":"Quick and Easy Guide on how to Code for Firebase Authentication in Swift","isPartOf":{"@id":"https:\/\/www.moveoapps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/#primaryimage"},"image":{"@id":"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/#primaryimage"},"thumbnailUrl":"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/How-to-Code-for-Firebase-Authentication-in-Swift-\u2013-The-Quick-and-Easy-Guide.png","datePublished":"2018-01-16T13:45:51+00:00","dateModified":"2019-09-25T11:19:46+00:00","author":{"@id":"https:\/\/www.moveoapps.com\/blog\/#\/schema\/person\/f78d302c017914e7aaa78d6c0b8fa805"},"description":"Firebase gives you the tools to develop high-quality apps, grow your user base, and earn more money. It supports Android, iOS, Web, C++ and Unity platforms.","breadcrumb":{"@id":"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/#primaryimage","url":"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/How-to-Code-for-Firebase-Authentication-in-Swift-\u2013-The-Quick-and-Easy-Guide.png","contentUrl":"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2018\/01\/How-to-Code-for-Firebase-Authentication-in-Swift-\u2013-The-Quick-and-Easy-Guide.png","width":2560,"height":1294,"caption":"How to Code for Firebase Authentication in Swift"},{"@type":"BreadcrumbList","@id":"https:\/\/www.moveoapps.com\/blog\/how-to-code-for-firebase-authentication-in-swift\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.moveoapps.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Code for Firebase Authentication in Swift \u2013 The Quick and Easy Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.moveoapps.com\/blog\/#website","url":"https:\/\/www.moveoapps.com\/blog\/","name":"Moveo Apps","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.moveoapps.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.moveoapps.com\/blog\/#\/schema\/person\/f78d302c017914e7aaa78d6c0b8fa805","name":"Gunjan Bhavsar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.moveoapps.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2019\/09\/Gunjan-Bhavsar-96x96.jpg","contentUrl":"https:\/\/www.moveoapps.com\/blog\/wp-content\/uploads\/2019\/09\/Gunjan-Bhavsar-96x96.jpg","caption":"Gunjan Bhavsar"},"sameAs":["https:\/\/www.moveoapps.com\/"],"url":"https:\/\/www.moveoapps.com\/blog\/author\/gunjan-bhavsar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/posts\/1460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/users\/101027"}],"replies":[{"embeddable":true,"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/comments?post=1460"}],"version-history":[{"count":22,"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/posts\/1460\/revisions"}],"predecessor-version":[{"id":1589,"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/posts\/1460\/revisions\/1589"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/media\/1559"}],"wp:attachment":[{"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/media?parent=1460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/categories?post=1460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.moveoapps.com\/blog\/wp-json\/wp\/v2\/tags?post=1460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}