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

@types/oauth2orize

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/oauth2orize - npm Package Compare versions

Comparing version 1.8.11 to 1.11.0

52

oauth2orize/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for oauth2orize 1.8
// Type definitions for oauth2orize 1.11
// Project: https://github.com/jaredhanson/oauth2orize/

@@ -32,3 +32,3 @@ // Definitions by: Wonshik Kim <https://github.com/wokim>, Kei Son <https://github.com/heycalmdown>

redirectURI: string;
scope: string;
scope: string[];
state: string;

@@ -132,3 +132,7 @@ type: string;

export type ValidateFunction = (clientId: string, redirectURI: string, validated: (err: Error | null, client?: any, redirectURI?: string) => void) => void;
export type ValidateDoneFunction = (err: Error | null, client?: any, redirectURI?: string) => void;
export type ValidateFunctionArity5 = (clientId: string, redirectURI: string, scope: string[], type: string, validated: ValidateDoneFunction) => void;
export type ValidateFunctionArity4 = (clientId: string, redirectURI: string, scope: string[], validated: ValidateDoneFunction) => void;
export type ValidateFunction = (clientId: string, redirectURI: string, validated: ValidateDoneFunction) => void;
export type ValidateFunctionArity2 = (areq: OAuth2Req, validated: ValidateDoneFunction) => void;

@@ -145,6 +149,13 @@ export type ImmediateFunction = (client: any, user: any, scope: string[], type: string, areq: any, done: (err: Error | null, allow: boolean, info: any, locals: any) => void) => void;

export type IssueGrantCodeFunction = (client: any, redirectUri: string, user: any, res: any, issued: (err: Error | null, code?: string) => void) => void;
export type IssueGrantCodeDoneFunction = (err: Error | null, code?: string) => void;
export type IssueGrantCodeFunctionArity7 = (client: any, redirectUri: string, user: any, res: any, req: OAuth2Req, locals: any, issued: IssueGrantCodeDoneFunction) => void;
export type IssueGrantCodeFunctionArity6 = (client: any, redirectUri: string, user: any, res: any, req: OAuth2Req, issued: IssueGrantCodeDoneFunction) => void;
export type IssueGrantCodeFunction = (client: any, redirectUri: string, user: any, res: any, issued: IssueGrantCodeDoneFunction) => void;
export type IssueGrantCodeFunctionArity4 = (client: any, redirectUri: string, user: any, issued: IssueGrantCodeDoneFunction) => void;
export type IssueGrantTokenFunction = (client: any, user: any, ares: any, issued: (err: Error | null, code?: string, params?: any) => void) => void;
export type IssueExchangeCodeFunctionArity6 = (client: any, code: string, redirectURI: string, body: Record<string, unknown>, authInfo: any, issued: ExchangeDoneFunction) => void;
export type IssueExchangeCodeFunctionArity5 = (client: any, code: string, redirectURI: string, body: Record<string, unknown>, issued: ExchangeDoneFunction) => void;
export type IssueExchangeCodeFunction = (client: any, code: string, redirectURI: string, issued: ExchangeDoneFunction) => void;

@@ -161,7 +172,12 @@

authorize(options: AuthorizeOptions, validate: ValidateFunction): MiddlewareFunction;
authorize(validate: ValidateFunction): MiddlewareFunction;
authorize(options: AuthorizeOptions, validate: ValidateFunctionArity5, immediate?: ImmediateFunction): MiddlewareFunction;
authorize(options: AuthorizeOptions, validate: ValidateFunctionArity4, immediate?: ImmediateFunction): MiddlewareFunction;
authorize(options: AuthorizeOptions, validate: ValidateFunction, immediate?: ImmediateFunction): MiddlewareFunction;
authorize(options: AuthorizeOptions, validate: ValidateFunctionArity2, immediate?: ImmediateFunction): MiddlewareFunction;
authorize(validate: ValidateFunctionArity5, immediate?: ImmediateFunction): MiddlewareFunction;
authorize(validate: ValidateFunctionArity4, immediate?: ImmediateFunction): MiddlewareFunction;
authorize(validate: ValidateFunction, immediate?: ImmediateFunction): MiddlewareFunction;
authorize(validate: ValidateFunctionArity2, immediate?: ImmediateFunction): MiddlewareFunction;
authorization(options: AuthorizeOptions, validate: ValidateFunction, immediate?: ImmediateFunction): MiddlewareFunction;
authorization(validate: ValidateFunction, immediate?: ImmediateFunction): MiddlewareFunction;
authorization: OAuth2Server["authorize"];

@@ -185,3 +201,6 @@ decision(options: DecisionOptions, parse: DecisionParseFunction): MiddlewareFunction;

interface Options {
// For maximum flexibility, multiple scope spearators can optionally be
modes?: {
query?: (txn: OAuth2, res: ServerResponse, params: Record<string, unknown>) => void;
};
// For maximum flexibility, multiple scope separators can optionally be
// allowed. This allows the server to accept clients that separate scope

@@ -194,4 +213,10 @@ // with either space or comma (' ', ','). This violates the specification,

function code(options: Options, issue: IssueGrantCodeFunctionArity7): MiddlewareFunction;
function code(options: Options, issue: IssueGrantCodeFunctionArity6): MiddlewareFunction;
function code(options: Options, issue: IssueGrantCodeFunction): MiddlewareFunction;
function code(options: Options, issue: IssueGrantCodeFunctionArity4): MiddlewareFunction;
function code(issue: IssueGrantCodeFunctionArity7): MiddlewareFunction;
function code(issue: IssueGrantCodeFunctionArity6): MiddlewareFunction;
function code(issue: IssueGrantCodeFunction): MiddlewareFunction;
function code(issue: IssueGrantCodeFunctionArity4): MiddlewareFunction;

@@ -208,3 +233,3 @@ function token(options: Options, issue: IssueGrantTokenFunction): MiddlewareFunction;

// For maximum flexibility, multiple scope spearators can optionally be
// For maximum flexibility, multiple scope separators can optionally be
// allowed. This allows the server to accept clients that separate scope

@@ -217,7 +242,10 @@ // with either space or comma (' ', ','). This violates the specification,

function authorizationCode(options: Options, issue: IssueExchangeCodeFunctionArity6): MiddlewareFunction;
function authorizationCode(options: Options, issue: IssueExchangeCodeFunctionArity5): MiddlewareFunction;
function authorizationCode(options: Options, issue: IssueExchangeCodeFunction): MiddlewareFunction;
function authorizationCode(issue: IssueExchangeCodeFunctionArity6): MiddlewareFunction;
function authorizationCode(issue: IssueExchangeCodeFunctionArity5): MiddlewareFunction;
function authorizationCode(issue: IssueExchangeCodeFunction): MiddlewareFunction;
function code(options: Options, issue: IssueExchangeCodeFunction): MiddlewareFunction;
function code(issue: IssueExchangeCodeFunction): MiddlewareFunction;
const code: typeof authorizationCode;

@@ -224,0 +252,0 @@ // arity == 5; issue(client, scope, req.body, req.authInfo, issued);

{
"name": "@types/oauth2orize",
"version": "1.8.11",
"version": "1.11.0",
"description": "TypeScript definitions for oauth2orize",

@@ -31,4 +31,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/oauth2orize",

},
"typesPublisherContentHash": "a30edfd8b9c57d4b66aaaa31ea31627a44a15b41377074424c3a671e8c6752e4",
"typeScriptVersion": "4.2"
"typesPublisherContentHash": "4b61b7ca4f68dc25f64d16a247c5cd8512c21c2e86101b0f2141a8ce34a626cf",
"typeScriptVersion": "4.3"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Wed, 15 Feb 2023 19:32:46 GMT
* Last updated: Thu, 25 May 2023 18:32:57 GMT
* Dependencies: [@types/express](https://npmjs.com/package/@types/express), [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,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