Download the PHP package gusmanwidodo/auth-kit-otp without Composer
On this page you can find all versions of the php package gusmanwidodo/auth-kit-otp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gusmanwidodo/auth-kit-otp
More information about gusmanwidodo/auth-kit-otp
Files in gusmanwidodo/auth-kit-otp
Package auth-kit-otp
Short Description One-time password (OTP) plugin for Auth-Kit. Adds /auth-kit/otp/* endpoints and a code store.
License MIT
Homepage https://github.com/gusmanwidodo/auth-kit-otp
Informations about the package auth-kit-otp
Auth-Kit OTP
One-time password (OTP) plugin for Auth-Kit. A standalone Composer package that plugs into the Auth-Kit core to add OTP issue/verify endpoints, a code store, and expiry enforcement via the core hook pipeline.
What it demonstrates
This package is the reference example of the Auth-Kit plugin model. It uses the full plugin surface as an independent package that only depends on the core:
HasSchema— ships theauth_kit_otp_codesmigrationHasRoutes— addsPOST /auth-kit/otp/issueandPOST /auth-kit/otp/verifyHasHooks— abefore:otp.verifyhook that rejects expired codes
Requirements
- PHP
^8.3 gusmanwidodo/auth-kit^0.1- Laravel 12
Installation
Both the core and this plugin are auto-discovered. Run migrations to create the OTP table:
Optionally publish the config:
Endpoints
| Method | URI | Body | Purpose |
|---|---|---|---|
| POST | /auth-kit/otp/issue |
{ identifier } |
Generate + store a hashed code |
| POST | /auth-kit/otp/verify |
{ identifier, code } |
Verify, running the hook pipeline |
In production, deliver the code via mail/SMS. The
codeis only returned in theissueresponse while running tests.
Config
config/auth-kit-otp.php:
Developing against a local core
When both repos are checked out side by side, point Composer at the local core before installing:
License
MIT © Gusman Widodo. See LICENSE.
All versions of auth-kit-otp with dependencies
gusmanwidodo/auth-kit Version ^0.1
illuminate/contracts Version ^12.0
illuminate/support Version ^12.0