@balena/jellyfish-plugin-oauth
v1.0.0
Published
Jellyfish OAuth Plugin
Downloads
20
Readme
Jellyfish OAuth Plugin
Provides OAuth related contracts and Jellyfish auth integration.
Usage
Below is an example how to use this library:
import { defaultPlugin } from '@balena/jellyfish-plugin-default';
import { oauthPlugin } from '@balena/jellyfish-plugin-oauth';
import { PluginManager } from '@balena/jellyfish-worker';
// Load contracts from this plugin
const pluginManager = new PluginManager([
defaultPlugin(),
oauthPlugin(),
]);
const contracts = pluginManager.getCards();
console.dir(contracts);
Documentation
Visit the website for complete documentation: https://product-os.github.io/jellyfish-plugin-oauth
Testing
Unit tests can be easily run with the command npm test
.