Introduction

StartEase uses nuxt-auth-utils for authentication. It provides effortless authentication for Nuxt apps with secure, sealed cookie-based sessions.

Authentication is the bridge between traffic and conversions.

After extensive research, we’ve distilled the best practices into a login process that’s as lightweight and effective as possible for StartEase.

  • Minimalist Login Form. Users only need to enter their email—nothing more.

    images/IMG_0668.jpg

    A comparison of login friction across top streaming platforms, showing how fewer clicks lead to higher conversion rates.

  • Passwordless Design. Users hate remembering anything.

    1. No more “Your password must be at least 8 characters”.
    2. No moreIncorrect password, try again”.
    3. No moreReset Password”.

When users log in for the first time, their information is stored in a cookie, so they don’t have to log in again.

  • Simple Authentication Methods
    1. ✅ Social Logins (Google, GitHub, and more)

    2. ✅ One-time Passwords (OTPs)

    3. ✅ Magic Links

    We’re not TikTok, Facebook, or Google. Most visitors come to our site out of curiosity.

    Too many login options overwhelm users and slow them down.

    Instead, we offer the simplest, most seamless ways to sign in.

Fill in the following variables in the .env file.

 BASE_URL=
 FROM_EMAIL=
 RESEND_API_KEY=

You can get the RESEND_API_KEY from Resend.

If you want to test in the development environment, you can view the printed email, oneTimePassword, and emailVerificationCode in the terminal.

Social Logins

The Github/Google OAuth credentials are not required if you are not using the Github/Google login feature.

Google

Fill in the following client variables in the .env file.

 NUXT_OAUTH_GOOGLE_CLIENT_ID=
 NUXT_OAUTH_GOOGLE_CLIENT_SECRET=

You can get the client_id and client_secret from  Google Cloud Console.

You can refer to my image for guidance.

images/googleauth.png

GitHub

Fill in the following client variables in the .env file.

 NUXT_OAUTH_GITHUB_CLIENT_ID=
 NUXT_OAUTH_GITHUB_CLIENT_SECRET=

You can get the client_id and client_secret from GitHub Developer Settings.

You can refer to my image for guidance.

images/githubauth.png

Congratulations 🎉, people can now easily sign in to your Application.