stelace / stelace.js

JavaScript SDK for Stelace API (node & browser)
https://stelace.com
MIT License
4 stars 3 forks source link

Set host at initialization #290

Open j4m3sb0mb opened 3 years ago

j4m3sb0mb commented 3 years ago

It would be useful to set host, port and protocol at initialization

const stelace = require('stelace').createInstance({
  apiKey: 'seck_test_ ...',
  host: '0.0.0.0',
  port: '443',
  protocol: 'https'
})
woyuen commented 3 years ago

Hi @j4m3sb0mb, Thanks for the feedback. This would be useful indeed. I'll add the host configuration at initialization.

DmitryKvant commented 3 years ago

const stelace = require("stelace").createInstance({ apiKey: "seck_test_wakWA41rBTUXs1Y5oNRjeY5o" });

stelace.setHost("localhost", "4100", "http");