Unofficial SDK for Hyper
You can view official api documentation here
Currently only oauth functionality is built.
const Hyper = require('hyper-oauth');
const hyper = new Hyper({
domain: 'https://yummyfnf.hyper.co',
publishableKey: 'pk_...',
secretKey: 'sk_...',
});
- domain - your dashboards domain
- publishableKey - your dashboards publishable api key
- secretKey - your dashboards secret api key
const Hyper = require('hyper-oauth');
const hyper = new Hyper({ domain: "https://yummyfnf.hyper.co"});
const result = await hyper.oauth.authorize();
- successUrl - Optional redirect url after logging in
- urlOpener - Optional custom function to handle opening url (uses open by default)
- grantType - Available options: user, license (defaults to license)