@apptoolkit/auth
v0.3.0
Published
- `RSA_PRIVATE_KEY`(*Required*): String of the private key in pkcs8 type with pem format or the path to a .pem file - `RSA_KEY_PASSPHRASE`(*Required*): Passphrase of the private key - `APP_NAME`(*Required*): Display name for the application - `ON_SIGN_IN_
Downloads
23
Readme
Required env
RSA_PRIVATE_KEY
(Required): String of the private key in pkcs8 type with pem format or the path to a .pem fileRSA_KEY_PASSPHRASE
(Required): Passphrase of the private keyAPP_NAME
(Required): Display name for the applicationON_SIGN_IN_URL
(Required): URL to go after a successful sign in. JWT is passed as a parameterDB_COLLECTION
(Required): Mongo collection of the accountsDB_DATABASE
(Required): Mongo databaseDB_HOST
(Required): Mongo database hostDB_PORT
: Mongo database host portDB_PASSWORD
(Required): Mongo database usernameDB_USERNAME
(Required): Mongo database passwordNEXT_PUBLIC_DEV_AUTOFILL
: If this variable is set with"true"
, the inputs will auto fill. (Only works in non prod environments)LAYOUT
: Layout of the UI
Flows
Sign In
sequenceDiagram
autonumber
participant Client
participant API as /api/signIn
participant Controller
participant DB