Socket
Book a DemoInstallSign in
Socket

@adonisaddons/portal

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adonisaddons/portal

Scaffolding package to generate Auth flows

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

portal

This package scaffolds the following for Adonis web applications:
✅ Sign up and Sign in flows
✅ Password Reset flow
✅ Verify Email flow

Prerequisites

  • @adonisjs/auth -> Lucid Provider & Web Guard
  • Auth middleware added in start/kernel.ts
  • tailwindcss -> Used in Portal's .edge files (though you're free to restyle them)

Install

  • npm i @adonisaddons/portal
  • Add the following to your .adonisrc.json file
"directories": {
    "app": "app"
}
  • node configure @adonisaddons/portal
  • Import start/portal.ts file into start/routes.ts file to add portal's routes to your app
  • Change redirectTo in middleware/auth.ts to /portal/login

Notes

  • This package doesn't send emails but instead emits events that you can tie into your email logic.
  • Additionally, Portal assumes you have a users table without a name column and generates a migration for it.
  • You will probably need to update your User model with the two new fields this package adds; name and email_verified

Images

Signup Login Forgot Password Reset Password

FAQs

Package last updated on 12 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts