Configurations
The config
object has the following schema:
Config
- type:
Array
- items:
HostProperty
- minimum items: 1
- description: array of host properties. At-least one host property needs to be passed.
HostProperty
property | type | required | description | e.g. |
---|---|---|---|---|
hostname | string | true | ip or host-name of SuperTokens instance | "localhost" |
port | number | true | port at which SuperTokens instance is running | 3567 |
let config = [{
hostname: "localhost",
port: 3567 // default port
}, {
hostname: "some-other-server.com",
port: 3567 // default port
}];
interface HostProperty {
hostname: string;
port: number;
}
let config: HostProperty[] = [{
hostname: "localhost",
port: 3567 // default port
}, {
hostname: "some-other-server.com",
port: 3567 // default port
}];