@imperium/auth-server v13.0.0
@imperium/auth-server
Environment Variables
These can be specified in a .env
file in the server package. These variables are secret and not shared with the client.
Variable | Default | Description |
---|---|---|
IMP_AUTH_DOMAIN | 'localhost' | Which domain is the auth server running on. Used for cookies. |
IMP_LOGIN_URL | '/api/login' | URL for REST login. |
IMP_REFRESH_URL | '/api/refresh' | URL for REST refresh access token. |
IMP_RESET_URL | '/api/forgot-password' | URL to request password reset. |
IMP_PERMISSION_URL | '/api/auth' | URL for REST permissions. |
IMP_ACCESS_TOKEN_SECRET | 'notsecure' | Secret for access tokens. |
IMP_TOKEN_ALGORITHMS | 'HS256' | CSV list of valid access/refresh token algorithms |
IMP_REFRESH_TOKEN_SECRET | 'notsecure' | Secret for refresh tokens. |
IMP_ACCESS_TOKEN_EXPIRES | '5m' | How often an access token expires. |
IMP_REFRESH_TOKEN_EXPIRES_SHORT | '1d' | How often a refresh token expires. |
IMP_REFRESH_TOKEN_EXPIRES_LONG | '7d' | How often a refresh token expires. |
IMP_LOGIN_MAX_FAIL | 5 | How many failed login attempts allowed. |
IMP_LOGIN_MAX_COOLDOWN | 300 | How many seconds to lock failed login attempts out. |
IMP_REFRESH_COOKIE_NAME | 'refresh' | What cookie name is the refresh token stored as? |
2 days ago
2 days ago
2 months ago
3 months ago
8 months ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago