Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grant-profile

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grant-profile

User profile plugin for Grant

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9.8K
increased by8.71%
Maintainers
1
Weekly downloads
 
Created
Source

grant-profile

User Profile plugin for Grant

NOTE: For grant-profile as a middleware for Express, Koa, and Hapi see v0.x branch

Use

Pass your Grant configuration as the config key, and the grant-profile plugin as item in the extend array:

var Grant = require('grant-express|koa|hapi')
var grant = Grant({
  config: require('./config.json'),
  extend: [require('grant-profile')]
})

Configuration

Grant Profile supports one additional configuration option called profile_url, that can be set for any provider.

The profile_url have to be set for custom providers.

It also can be used to override or set the profile_url for existing providers. Note that in some cases a custom logic might be needed for the internal HTTP client.

Not all of the supported providers in Grant are tested here, or have the correct profile URL set. Check out the configuration for current status.

Response Data

Additional profile key will be added to your response data containing the user profile.

Keywords

FAQs

Package last updated on 18 Apr 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc