Authenticating a User in a iOS Application using Firebase Email & Password Authentication Swift API

preview_player
Показать описание
In this video, I show you how to authenticate a user with a firebases authentication service using email and password.

The Firebases authentication framework for swift can be downloaded through Cocoapods and import using the normal steps.

The Firebase authenticated framework allows for you to authenticate a user, using email and password authentication, for all users that have been registered in the firebase console.

The firebase authentication framework in a swift/ios project for iPhone / iPad applications is a static framework meaning that it cannot be included within a dynamic framework within your ios application.

Before using the firebase authentication framework, you will need to register a google account with firebase and then create a new firebase project if you have not completed this step already. You will also need to enable the firebase authentication for email and password within the firebase console under the Firebase project that you have just created.

You can also authenticate a user using an email and then link if you decide that the user should not have to enter a password. This would mean that the user must then authenticate themselves with a link that has been generated through the firebase authentication service and will be sent to their registered email address.

It is really rather easy to use in a swift project. The swift implementation is very declarative and has lots of documentation on the firebase reference website.

The code for this project can be found in the following GitHub repo:

Рекомендации по теме
Комментарии
Автор

Very informative and at a great pace. Only thing I would say is that having a UI, even a very basic one, would help a lot. It allows new developers the ability to see how this would look in a real app (even if it's just the login/registration pages) rather than a development environment. Being able to see what is happening in the foreground as you explain the code that is in the background is invaluable to the learning process. Excellent video though

avgjoey
visit shbcf.ru