Config
Authorization
xddd
This documentation is under construction! 🚧
We're working hard to bring you the best documentation experience.
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:
VitNodeAPI({
app,
plugins: [],
authorization: {
cookie_expires: 1000 * 60 * 60 * 24 * 90, // 90 days
},
});
Options
Prop | Type | Default |
---|---|---|
cookieSecure? | boolean | true |
adminCookieExpires? | number | 1000 * 60 * 60 * 24 * 1 |
adminCookieName? | string | vitnode-admin |
deviceCookieExpires? | number | 1000 * 60 * 60 * 24 * 365 |
deviceCookieName? | string | vitnode-device |
cookie_expires? | number | 1000 * 60 * 60 * 24 * 90 |
cookieName? | string | vitnode-auth |