New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/passport-http-bearer

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/passport-http-bearer - npm Package Compare versions

Comparing version 1.0.36 to 1.0.37

8

passport-http-bearer/index.d.ts

@@ -16,8 +16,8 @@ // Type definitions for passport-http-bearer 1.0.1

interface IStrategyOptions {
scope?: string | Array<string>;
realm?: string;
passReqToCallback?: boolean;
scope?: string | Array<string> | undefined;
realm?: string | undefined;
passReqToCallback?: boolean | undefined;
}
interface IVerifyOptions {
message?: string;
message?: string | undefined;
scope: string | Array<string>;

@@ -24,0 +24,0 @@ }

{
"name": "@types/passport-http-bearer",
"version": "1.0.36",
"version": "1.0.37",
"description": "TypeScript definitions for passport-http-bearer",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-http-bearer",
"license": "MIT",

@@ -26,4 +27,4 @@ "contributors": [

},
"typesPublisherContentHash": "5cd2e735ac43763506bf51841a5bf895850354379ea61141b93dd4f3b9c4395c",
"typeScriptVersion": "3.1"
"typesPublisherContentHash": "174115ca98d2a192ce15ae4e5dcc80ddc016f8bf9d17bd5d44dabd3544359e9a",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,59 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-http-bearer.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/passport-http-bearer/index.d.ts)
````ts
// Type definitions for passport-http-bearer 1.0.1
// Project: https://github.com/jaredhanson/passport-http-bearer
// Definitions by: Isman Usoh <https://github.com/isman-usoh>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="passport"/>
/// <reference types="express" />
/// <reference types="koa" />
import passport = require("passport");
import express = require("express");
import koa = require("koa");
interface IStrategyOptions {
scope?: string | Array<string> | undefined;
realm?: string | undefined;
passReqToCallback?: boolean | undefined;
}
interface IVerifyOptions {
message?: string | undefined;
scope: string | Array<string>;
}
interface VerifyFunction {
(token: string, done: (error: any, user?: any, options?: IVerifyOptions | string) => void): void;
}
interface IKoaContextContainer { ctx: koa.Context; }
type KoaPassportExpressRequestMock = Partial<express.Request> & IKoaContextContainer;
interface VerifyFunctionWithRequest {
(req: express.Request, token: string, done: (error: any, user?: any, options?: IVerifyOptions | string) => void): void;
}
interface VerifyFunctionWithContext {
(req: KoaPassportExpressRequestMock, token: string, done: (error: any, user?: any, options?: IVerifyOptions | string) => void): void;
}
type VerifyFunctions =
| VerifyFunction
| VerifyFunctionWithRequest
| VerifyFunctionWithContext;
declare class Strategy<T extends VerifyFunctions> implements passport.Strategy {
constructor(verify: VerifyFunction);
constructor(options: IStrategyOptions, verify: T);
name: string;
authenticate(req: express.Request, options?: Object): void;
}
````
### Additional Details
* Last updated: Tue, 15 Sep 2020 16:31:47 GMT
* Last updated: Wed, 07 Jul 2021 17:02:26 GMT
* Dependencies: [@types/passport](https://npmjs.com/package/@types/passport), [@types/express](https://npmjs.com/package/@types/express), [@types/koa](https://npmjs.com/package/@types/koa)

@@ -14,0 +68,0 @@ * Global values: none

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