Auth
When the authRoutes option is set to true, Apiker will register the following default routes:
/auth/register
, /auth/login
, /auth/refresh
, /auth/delete
➡️ POST /auth/register
Request body:
Response:
Notes:
- For auth implementation details, check out the source at Auth.ts
- you would like to implement your own auth, you can always use the helpers at utils.ts. They are all exported from Apiker.
- ⚠️ Note: Auth routes are in active development. There might be significant changes in future versions. PRs and suggestions are always welcome!