🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@cuser/auth

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cuser/auth

auth core utility

Source
npmnpm
Version
0.0.33
Version published
Weekly downloads
12
-60%
Maintainers
1
Weekly downloads
 
Created
Source

cuser logo

Status

codecov npm npm-downloads

Class: CuserAuth

Auth controller

Hierarchy

  • CuserAuth

Index

Constructors

Methods

Constructors

constructor

+ new CuserAuth(node: IPFSAPI | Promise<IPFSAPI>, secret: string, opts: CuserCryptoKeygenOptions): CuserAuth

Defined in auth/auth.js:24

Parameters:

NameType
nodeIPFSAPI | Promise<IPFSAPI>
secretstring
optsCuserCryptoKeygenOptions

Returns: CuserAuth

Methods

authenticate

authenticate(payload: PayloadUser): Promise<string>

Defined in auth/auth.js:45

Parameters:

NameType
payloadPayloadUser

Returns: Promise<string>

decode

decode(accessToken: string): Promise<PayloadUser & { iat: Number }>

Defined in auth/auth.js:55

Parameters:

NameType
accessTokenstring

Returns: Promise<PayloadUser & { iat: Number }>

}

FAQs

Package last updated on 23 Dec 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