Skip to content

Authentication

JetShip offers a comprehensive authentication system, extending Laravel's built-in authentication system for SaaS applications.

User Registration

Registering a user in JetShip is straightforward. Users can register using one of the following methods:

  1. Simply filling the registration form by providing email id, username & password.
  2. Using Social media accounts.

Let's discuss both of them one by one.

When using the registration form, the user follows this process:

  1. The user fills in the registration form with their email address, username, and password.
  2. Upon submitting the form, the user receives a verification email.
  3. The verification email contains a link that, when clicked, redirects the user to the login page.

Email verification is optional by default. However, you can restrict access to certain pages until email verification is completed. For instance, you can restrict the dashboard page by implementing middleware that checks the user's verification status.

Users can also register using social accounts like Google, Twitter, and Facebook. You can enable or disable social logins in the admin panel. For more details on configuring social logins, please refer to Social Login Configuration.

User Login

User can use any of below three methods to log in

  1. By filling login form
  2. By using their social accounts
  3. By using the password-less login(a.k.a. magic link)

Let's discuss each method in detail.

  1. Filling the Login Form In this method, the user needs to provide their credentials (email and password). Upon submitting the form, the user will be logged in if the credentials are correct.

  2. Using Social Accounts Users can log in using their social accounts, such as Facebook, Twitter, and GitHub, provided social login is enabled. This feature can be enabled or disabled from the admin panel. For detailed instructions on configuring social logins, please refer to Social Login Configuration.

  3. Password-less Login (Magic Link) In this method, the user provides their email address, and they will receive a login link via email. Clicking this link will log the user in automatically.

Password Reset

Users can reset their passwords using the password reset form. Upon submitting this form, users receive a password reset link via email. Clicking this link redirects them to the password reset page.