init(config)
Parameters
config
:- type:
object
. To see the fields in this object, visit the Configuration page.
- type:
Returns
void
Throws
- GENERAL_ERROR if the config object passed is invalid
Example
let supertokens = require("supertokens-node");
let config = [{
hostname: "localhost",
port: 8888
}];
supertokens.init(config);
import * as supertokens from "supertokens-node";
interface HostProperty {
hostname: string;
port: number;
}
let config: HostProperty[] = [{
hostname: "localhost",
port: 8888
}];
supertokens.init(config);