0.6.14 • Published 6 months ago

@hotstaq/userroute v0.6.14

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

HotStaq User Route

Documentation is coming...

This supports MariaDB and PostgreSQL databases. MySQL support is experimental and most likely does not work!

For API documentation, please see the OpenAPI Documentation

Getting Started

Simply install this package into your HotStaq project by doing:

npm install @hotstaq/userroute

Then in your code base, navigate to your API that extends the HotAPI class and add the new route:

this.addRoute (new UserRoute (this));

Now your API will have the user route available with all the endpoints listed in the OpenAPI documentation.

NOTE The environment variable JWT_SECRET_KEY is required for this package to work. This is the secret key used to sign the JWT tokens.

Environment Variables

  • JWT_SECRET_KEY
    • Description: The JWT secret key to use for signing tokens.
    • Type: string
    • Default:
  • AUTO_VERIFY_USERS
    • Description: If set to 1, users will be automatically verified upon registration. This is mostly for development purposes.
    • Type: number
    • Default: 0
  • DISABLE_REHASHING
    • Description: If set to 1, passwords will not be rehashed after a successful login.
    • Type: number
    • Default: 0
  • DATABASE_DISABLE
    • Description: If set to 1, a database connection will not be established.
    • Type: number
    • Default: 0

API Generation

To generate a web client for use on a website enter:

npm run build-web

To generate the OpenAPI 3.0.0 YAML documentation enter:

npm run build-doc
0.6.7

11 months ago

0.6.6

11 months ago

0.6.9

10 months ago

0.6.8

10 months ago

0.6.10

10 months ago

0.6.12

9 months ago

0.6.11

9 months ago

0.6.14

6 months ago

0.6.13

9 months ago

0.6.5

11 months ago

0.5.8

1 year ago

0.5.9

1 year ago

0.6.0

1 year ago

0.5.7

2 years ago

0.5.4

2 years ago

0.5.6

2 years ago

0.5.5

2 years ago

0.5.3

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.9

2 years ago

0.4.8

2 years ago

0.4.7

2 years ago

0.4.6

2 years ago

0.4.5

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.9

2 years ago

0.3.8

2 years ago

0.3.6

2 years ago

0.3.7

2 years ago

0.3.5

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago