New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

passwordless-s3

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passwordless-s3

S3 token store for passwordless

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

Passwordless-S3

S3 token store for Passwordless.

Installation

  • npm install passwordless-s3

Usage

The S3 bucket must exist prior to using this token store. Further, since the S3Store has the ability to empty the bucket, the bucket should not hold any files besides the ones put there by the S3Store.

const S3Store = require('passwordless-s3');
passwordless.init(new S3Store({params: {Bucket: 'your-bucket-name'}}))

The constructor takes in s3Options, which is passed to the underlying S3 client. params.Bucket is the only required option. See the aws-sdk docs for a full description of the options object.

Testing and linting

  • npm test
  • npm run lint

Hash and salt

As the tokens are equivalent to passwords (even though only for a limited time) they have to be protected in the same way. By default passwordless-s3 uses bcrypt with automatically created random salts. To generate the salt 10 rounds are used.

FAQs

Package last updated on 12 Nov 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