🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

swagger-magic-auth-interface

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

swagger-magic-auth-interface

auth interface for the swagger-magic module

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

Install

npm install swagger-magic-auth-interface --save

#swagger-magic-auth-interface auth interface for the swagger-magic module

Example

    var auth = require("swagger-magic-auth-interface");

Members

##auth~authorize indicates the callback if the user with the given details is authorized for making the current call

Params

  • token String - the authenticated token
  • scopes Array - the scopes of the current request
  • (Function(boolean)) - done - the callback to call when result ready

Scope: inner member of swagger-magic-auth-interface
Example

    auth.authorize(token, scopes, done)

##auth~authenticate indicates the callback if the user with the given details is authenticated or not

Params

  • username String - the username to be checked
  • password String - the password to test against
  • (Function(err,user)) - done - the callback to call when result ready

Scope: inner member of swagger-magic-auth-interface
Example

    auth.authenticate(username, password, done)

Keywords

swagger

FAQs

Package last updated on 04 Feb 2015

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