UNPKG
json-server-auth
Version:
latest (2.1.0)
next (2.0.3-b)
2.1.0
2.0.3
2.0.3-b
2.0.2
2.0.1
2.0.0
1.2.1
1.2.0
1.1.0
1.0.0
Authentication middleware for JSON Server
jeremyben/json-server-auth
json-server-auth
/
dist
/
constants.d.ts
6 lines
(5 loc)
•
236 B
TypeScript
View Raw
1
2
3
4
5
6
export
declare
const
JWT_SECRET_KEY
=
"json-server-auth-123456"
;
export
declare
const
JWT_EXPIRES_IN
=
"1h"
;
export
declare
const
SALT_LENGTH
=
10
;
export
declare
const
EMAIL_REGEX
:
RegExp
;
export
declare
const
MIN_PASSWORD_LENGTH
=
4
;