Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Registration

Yugantar Jain edited this page Aug 29, 2020 · 4 revisions

The registration consists of both Login and Sign-Up. Login screen is used to enter the app by pre-registered users, while sign-up screen allows new users to quickly register in-app and start using the Mentorship system!

1. Login

The login screen features text fields to input 'Username' and 'Password' for authentication. The password field is implemented using a Secure Text Field. It also contains a button that brings up the sign-up screen for new users.

2. Sign-up

The sign-up screen features text-fields to input required details such as username, password, confirm password, etc along with a picker to select the role (mentee, mentor, both). It also contains the terms and conditions and a toggle to accept them.

Registration Flow

Social Sign-In

The Mentorship iOS app also features two social sign-in options to allow users to conveniently sign-in or sign-up to the app using their Google or Apple account.

The social sign-in buttons are available on the login screen. When a user taps on one of these, the respective provider is called to show its sign-in flow UI which the user interacts with. After the user signs-in on one of the social sign-in provider, the app receives the user's data (name, email, and user_token) from the provider. This data is used as payload and an API cal is made to our backend.

Now, the backend handles the authentication process and returns the response. For a successful sign-in, the Mentorship Backend returns the access tokens for the user, else in the case of an error/failure an appropriate error message is returned. The app uses this response and either signs-in the user (for success), or shows the error message (for fail).

Clone this wiki locally