Code Monkey home page Code Monkey logo

seneca-stytch-provider's Introduction

Seneca Stytch-Provider

Seneca Stytch-Provider is a plugin for Seneca

Provides access to the Stytch API using the Seneca provider convention. Stytch API entities are represented as Seneca entities so that they can be accessed using the Seneca entity API and messages.

See seneca-entity and the Seneca Data Entities Tutorial for more details on the Seneca entity API.

NOTE: underlying third party SDK needs to be replaced as out of date and has a security issue.

npm version build Coverage Status Known Vulnerabilities DeepScan grade Maintainability

Voxgig This open source module is sponsored and supported by Voxgig.

Quick Setup

// Setup - get the key value (<SECRET>) separately from a vault or
// environment variable.
const seneca = Seneca({ legacy: false })
  .test() // sets up the Seneca instance for testing: easier to read layout
  .use('promisify')
  .use('entity')
  // Get API keys using the seneca-env plugin
  .use('env', {
    var: {
      $STYTCH_PROJECTID: String,
      $STYTCH_SECRET: String,
    }
  })
  .use('provider', {
    provider: {
      stytch: {
        keys: {
          project_id: { value: '$STYTCH_PROJECTID' },
          secret: { value: '$STYTCH_SECRET' },
        }
      }
    }
  })
  // load up the 'provider/stytch/user' entity
  .use('stytch-provider')
  // it is recommended that you get seneca instance 'ready' before moving on 
  await seneca.ready()

Install

$ npm install @seneca/stytch-provider @seneca/env seneca-entity @seneca/provider seneca-promisify

Options

None.

Action Patterns

Action Descriptions

« "role":"entity","base":"stytch","cmd":"list","name":"session","zone":"provider" »

No description provided.


« "role":"entity","base":"stytch","cmd":"list","name":"user","zone":"provider" »

List Stytch data into an entity


« "role":"entity","base":"stytch","cmd":"load","name":"user","zone":"provider" »

Load Stytch data into an entity


« "role":"entity","base":"stytch","cmd":"remove","name":"user","zone":"provider" »

Remove Stytch data from an entity


« "role":"entity","base":"stytch","cmd":"save","name":"user","zone":"provider" »

Update/Save Stytch data into an entity


« "sys":"provider","get":"info","provider":"stytch" »

Get information about the Stytch SDK.


seneca-stytch-provider's People

Contributors

beallaround avatar rjrodger avatar

Stargazers

Cal Rueb avatar

Watchers

seneca-bot avatar  avatar

Forkers

beallaround

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.