Authorization
xddd
Configuration
You can configure the authentication settings in the VitNodeAPI
function and authorization
param.
For example you can change the expiration time of the cookie:
Options
Prop | Type | Default |
---|---|---|
cookieName? | string | vitnode-auth |
cookie_expires? | number | 1000 * 60 * 60 * 24 * 90 |
deviceCookieName? | string | vitnode-device |
deviceCookieExpires? | number | 1000 * 60 * 60 * 24 * 365 |
adminCookieName? | string | vitnode-admin |
adminCookieExpires? | number | 1000 * 60 * 60 * 24 * 1 |
cookieSecure? | boolean | true |