Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

@4geit/swg-get-user-with-api-token-helper

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@4geit/swg-get-user-with-api-token-helper

return an account that matches the passed api token

latest
npmnpm
Version
1.28.0
Version published
Weekly downloads
27
35%
Maintainers
3
Weekly downloads
 
Created
Source

@4geit/swg-get-user-with-api-token-helper npm version

return an account that matches the passed api token

Installation

  • A recommended way to install @4geit/swg-get-user-with-api-token-helper is through npm package manager using the following command:
npm i @4geit/swg-get-user-with-api-token-helper --save

Or use yarn using the following command:

yarn add @4geit/swg-get-user-with-api-token-helper
  • All you have to do is to import the @4geit/swg-get-user-with-api-token-helper package in your controller or mock file as below:
// ...
const swgGetUserWithApiTokenHelper = require('@4geit/swg-get-user-with-api-token-helper');
// ...

And use it with one of your endpoint controller as below:

// ...
module.exports = {
  // ...
  getItems: swgGetUserWithApiTokenHelper(
    ({ req, res, user }) => {
      // ...
    }
  ),
  // ...
};

FAQs

Package last updated on 06 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts