@types/oauth2orize
Advanced tools
Comparing version 1.11.0 to 1.11.1
@@ -13,38 +13,38 @@ // Type definitions for oauth2orize 1.11 | ||
declare global { | ||
namespace Express { | ||
interface Request { | ||
oauth2?: OAuth2 | undefined; | ||
namespace Express { | ||
interface Request { | ||
oauth2?: OAuth2 | undefined; | ||
} | ||
} | ||
} | ||
} | ||
export interface OAuth2 { | ||
client: any; | ||
user: any; | ||
transactionID: string; | ||
redirectURI: string; | ||
req: OAuth2Req; | ||
info: OAuth2Info; | ||
client: any; | ||
user: any; | ||
transactionID: string; | ||
redirectURI: string; | ||
req: OAuth2Req; | ||
info: OAuth2Info; | ||
} | ||
export interface OAuth2Req { | ||
clientID: string; | ||
redirectURI: string; | ||
scope: string[]; | ||
state: string; | ||
type: string; | ||
transactionID: string; | ||
clientID: string; | ||
redirectURI: string; | ||
scope: string[]; | ||
state: string; | ||
type: string; | ||
transactionID: string; | ||
} | ||
export interface OAuth2Info { | ||
scope: string; | ||
scope: string; | ||
} | ||
export interface MiddlewareRequest extends IncomingMessage { | ||
oauth2?: OAuth2 | undefined; | ||
user?: any; | ||
oauth2?: OAuth2 | undefined; | ||
user?: any; | ||
} | ||
export interface ServerOptions { | ||
store: any; | ||
store: any; | ||
} | ||
@@ -55,15 +55,15 @@ | ||
export interface AuthorizeOptions { | ||
idLength?: number | undefined; | ||
sessionKey?: string | undefined; | ||
idLength?: number | undefined; | ||
sessionKey?: string | undefined; | ||
} | ||
export interface DecisionOptions { | ||
cancelField: string; | ||
userProperty: string; | ||
sessionKey: string; | ||
loadTransaction: boolean; | ||
cancelField: string; | ||
userProperty: string; | ||
sessionKey: string; | ||
loadTransaction: boolean; | ||
} | ||
export interface ErrorHandlerOptions { | ||
mode?: string | undefined; | ||
mode?: string | undefined; | ||
} | ||
@@ -83,8 +83,9 @@ | ||
export type AuthorizationErrorCode = 'invalid_request' | ||
| 'unauthorized_client' | ||
| 'access_denied' | ||
| 'unsupported_response_type' | ||
| 'invalid_scope' | ||
| 'temporarily_unavailable'; | ||
export type AuthorizationErrorCode = | ||
| "invalid_request" | ||
| "unauthorized_client" | ||
| "access_denied" | ||
| "unsupported_response_type" | ||
| "invalid_scope" | ||
| "temporarily_unavailable"; | ||
@@ -106,8 +107,9 @@ export class AuthorizationError extends OAuth2Error { | ||
export type TokenErrorCode = 'invalid_request' | ||
| 'invalid_client' | ||
| 'invalid_grant' | ||
| 'unauthorized_client' | ||
| 'unsupported_grant_type' | ||
| 'invalid_scope'; | ||
export type TokenErrorCode = | ||
| "invalid_request" | ||
| "invalid_client" | ||
| "invalid_grant" | ||
| "unauthorized_client" | ||
| "unsupported_grant_type" | ||
| "invalid_scope"; | ||
@@ -131,3 +133,8 @@ export class TokenError extends OAuth2Error { | ||
export type MiddlewareErrorFunction = (err: Error, req: MiddlewareRequest, res: ServerResponse, next: MiddlewareNextFunction) => void; | ||
export type MiddlewareErrorFunction = ( | ||
err: Error, | ||
req: MiddlewareRequest, | ||
res: ServerResponse, | ||
next: MiddlewareNextFunction, | ||
) => void; | ||
@@ -137,8 +144,26 @@ export type MiddlewareNextFunction = (err?: Error) => 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 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; | ||
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 ImmediateFunction = ( | ||
client: any, | ||
user: any, | ||
scope: string[], | ||
type: string, | ||
areq: any, | ||
done: (err: Error | null, allow: boolean, info: any, locals: any) => void, | ||
) => void; | ||
@@ -155,129 +180,263 @@ export type DecisionParseFunction = (req: MiddlewareRequest, done: (err: Error | null, params: any) => void) => 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 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 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; | ||
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; | ||
export type ExchangeDoneFunction = (err: Error | null, accessToken?: string | boolean, refreshToken?: string, params?: any) => void; | ||
export type ExchangeDoneFunction = ( | ||
err: Error | null, | ||
accessToken?: string | boolean, | ||
refreshToken?: string, | ||
params?: any, | ||
) => void; | ||
export class OAuth2Server { | ||
grant(type: string, fn: MiddlewareFunction): OAuth2Server; | ||
grant(fn: MiddlewareFunction): OAuth2Server; | ||
grant(type: string, fn: MiddlewareFunction): OAuth2Server; | ||
grant(fn: MiddlewareFunction): OAuth2Server; | ||
exchange(type: string, fn: MiddlewareFunction): OAuth2Server; | ||
exchange(fn: MiddlewareFunction): OAuth2Server; | ||
exchange(type: string, fn: MiddlewareFunction): OAuth2Server; | ||
exchange(fn: MiddlewareFunction): OAuth2Server; | ||
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; | ||
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: OAuth2Server["authorize"]; | ||
authorization: OAuth2Server["authorize"]; | ||
decision(options: DecisionOptions, parse: DecisionParseFunction): MiddlewareFunction; | ||
decision(parse: DecisionParseFunction): MiddlewareFunction; | ||
decision(): MiddlewareFunction; | ||
decision(options: DecisionOptions, parse: DecisionParseFunction): MiddlewareFunction; | ||
decision(parse: DecisionParseFunction): MiddlewareFunction; | ||
decision(): MiddlewareFunction; | ||
token(options?: any): MiddlewareFunction; | ||
token(options?: any): MiddlewareFunction; | ||
errorHandler(options?: any): MiddlewareErrorFunction; | ||
errorHandler(options?: any): MiddlewareErrorFunction; | ||
serializeClient(fn: SerializeClientFunction): void; | ||
serializeClient(client: any, done: SerializeClientDoneFunction): void; | ||
serializeClient(fn: SerializeClientFunction): void; | ||
serializeClient(client: any, done: SerializeClientDoneFunction): void; | ||
deserializeClient(fn: DeserializeClientFunction): void; | ||
deserializeClient(obj: any, done: DeserializeClientDoneFunction): void; | ||
deserializeClient(fn: DeserializeClientFunction): void; | ||
deserializeClient(obj: any, done: DeserializeClientDoneFunction): void; | ||
} | ||
export namespace grant { | ||
interface Options { | ||
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 | ||
// with either space or comma (' ', ','). This violates the specification, | ||
// but achieves compatibility with existing client libraries that are already | ||
// deployed. | ||
scopeSeparator?: string | undefined; | ||
} | ||
interface Options { | ||
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 | ||
// with either space or comma (' ', ','). This violates the specification, | ||
// but achieves compatibility with existing client libraries that are already | ||
// deployed. | ||
scopeSeparator?: string | undefined; | ||
} | ||
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; | ||
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; | ||
function token(options: Options, issue: IssueGrantTokenFunction): MiddlewareFunction; | ||
function token(issue: IssueGrantTokenFunction): MiddlewareFunction; | ||
function token(options: Options, issue: IssueGrantTokenFunction): MiddlewareFunction; | ||
function token(issue: IssueGrantTokenFunction): MiddlewareFunction; | ||
} | ||
export namespace exchange { | ||
interface Options { | ||
// The 'user' property of `req` holds the authenticated user. In the case | ||
// of the token endpoint, the property will contain the OAuth 2.0 client. | ||
userProperty?: string | undefined; | ||
interface Options { | ||
// The 'user' property of `req` holds the authenticated user. In the case | ||
// of the token endpoint, the property will contain the OAuth 2.0 client. | ||
userProperty?: string | undefined; | ||
// For maximum flexibility, multiple scope separators can optionally be | ||
// allowed. This allows the server to accept clients that separate scope | ||
// with either space or comma (' ', ','). This violates the specification, | ||
// but achieves compatibility with existing client libraries that are already | ||
// deployed. | ||
scopeSeparator?: string | undefined; | ||
} | ||
// For maximum flexibility, multiple scope separators can optionally be | ||
// allowed. This allows the server to accept clients that separate scope | ||
// with either space or comma (' ', ','). This violates the specification, | ||
// but achieves compatibility with existing client libraries that are already | ||
// deployed. | ||
scopeSeparator?: string | undefined; | ||
} | ||
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 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; | ||
const code: typeof authorizationCode; | ||
const code: typeof authorizationCode; | ||
// arity == 5; issue(client, scope, req.body, req.authInfo, issued); | ||
function clientCredentials(options: Options, issue: (client: any, scope: string[], body: any, authInfo: any, issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
// arity == 4; issue(client, scope, req.body, issued); | ||
function clientCredentials(options: Options, issue: (client: any, scope: string[], body: any, issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
// arity == 3; issue(client, scope, issued); | ||
function clientCredentials(options: Options, issue: (client: any, scope: string[], issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
// arity == 2; issue(client, issued); | ||
function clientCredentials(options: Options, issue: (client: any, issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
function clientCredentials(issue: (client: any, scope: string[], issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
function clientCredentials(issue: (client: any, issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
// arity == 5; issue(client, scope, req.body, req.authInfo, issued); | ||
function clientCredentials( | ||
options: Options, | ||
issue: (client: any, scope: string[], body: any, authInfo: any, issued: ExchangeDoneFunction) => void, | ||
): MiddlewareFunction; | ||
// arity == 4; issue(client, scope, req.body, issued); | ||
function clientCredentials( | ||
options: Options, | ||
issue: (client: any, scope: string[], body: any, issued: ExchangeDoneFunction) => void, | ||
): MiddlewareFunction; | ||
// arity == 3; issue(client, scope, issued); | ||
function clientCredentials( | ||
options: Options, | ||
issue: (client: any, scope: string[], issued: ExchangeDoneFunction) => void, | ||
): MiddlewareFunction; | ||
// arity == 2; issue(client, issued); | ||
function clientCredentials( | ||
options: Options, | ||
issue: (client: any, issued: ExchangeDoneFunction) => void, | ||
): MiddlewareFunction; | ||
function clientCredentials( | ||
issue: (client: any, scope: string[], issued: ExchangeDoneFunction) => void, | ||
): MiddlewareFunction; | ||
function clientCredentials(issue: (client: any, issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
// arity == 7; issue(client, username, passwd, scope, req.body, req.authInfo, issued); | ||
function password(options: Options, issue: (client: any, username: string, password: string, scope: string[], body: any, authInfo: any, issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
// arity == 6; issue(client, username, passwd, scope, req.body, issued); | ||
function password(options: Options, issue: (client: any, username: string, password: string, scope: string[], body: any, issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
// arity == 5; issue(client, username, passwd, scope, issued); | ||
function password(options: Options, issue: (client: any, username: string, password: string, scope: string[], issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
// arity == 4; issue(client, username, passwd, issued); | ||
function password(options: Options, issue: (client: any, username: string, password: string, issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
function password(issue: (client: any, username: string, password: string, scope: string[], issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
function password(issue: (client: any, username: string, password: string, issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
// arity == 7; issue(client, username, passwd, scope, req.body, req.authInfo, issued); | ||
function password( | ||
options: Options, | ||
issue: ( | ||
client: any, | ||
username: string, | ||
password: string, | ||
scope: string[], | ||
body: any, | ||
authInfo: any, | ||
issued: ExchangeDoneFunction, | ||
) => void, | ||
): MiddlewareFunction; | ||
// arity == 6; issue(client, username, passwd, scope, req.body, issued); | ||
function password( | ||
options: Options, | ||
issue: ( | ||
client: any, | ||
username: string, | ||
password: string, | ||
scope: string[], | ||
body: any, | ||
issued: ExchangeDoneFunction, | ||
) => void, | ||
): MiddlewareFunction; | ||
// arity == 5; issue(client, username, passwd, scope, issued); | ||
function password( | ||
options: Options, | ||
issue: (client: any, username: string, password: string, scope: string[], issued: ExchangeDoneFunction) => void, | ||
): MiddlewareFunction; | ||
// arity == 4; issue(client, username, passwd, issued); | ||
function password( | ||
options: Options, | ||
issue: (client: any, username: string, password: string, issued: ExchangeDoneFunction) => void, | ||
): MiddlewareFunction; | ||
function password( | ||
issue: (client: any, username: string, password: string, scope: string[], issued: ExchangeDoneFunction) => void, | ||
): MiddlewareFunction; | ||
function password( | ||
issue: (client: any, username: string, password: string, issued: ExchangeDoneFunction) => void, | ||
): MiddlewareFunction; | ||
// arity == 6; issue(client, refreshToken, scope, req.body, req.authInfo, issued); | ||
function refreshToken(options: Options, issue: (client: any, refreshToken: string, scope: string[], body: any, authInfo: any, issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
// arity == 5; issue(client, refreshToken, scope, req.body, issued); | ||
function refreshToken(options: Options, issue: (client: any, refreshToken: string, scope: string[], body: any, issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
// arity == 4; issue(client, refreshToken, scope, issued); | ||
function refreshToken(options: Options, issue: (client: any, refreshToken: string, scope: string[], issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
// arity == 3; issue(client, refreshToken, issued); | ||
function refreshToken(options: Options, issue: (client: any, refreshToken: string, issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
function refreshToken(issue: (client: any, refreshToken: string, scope: string[], issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
function refreshToken(issue: (client: any, refreshToken: string, issued: ExchangeDoneFunction) => void): MiddlewareFunction; | ||
// arity == 6; issue(client, refreshToken, scope, req.body, req.authInfo, issued); | ||
function refreshToken( | ||
options: Options, | ||
issue: ( | ||
client: any, | ||
refreshToken: string, | ||
scope: string[], | ||
body: any, | ||
authInfo: any, | ||
issued: ExchangeDoneFunction, | ||
) => void, | ||
): MiddlewareFunction; | ||
// arity == 5; issue(client, refreshToken, scope, req.body, issued); | ||
function refreshToken( | ||
options: Options, | ||
issue: (client: any, refreshToken: string, scope: string[], body: any, issued: ExchangeDoneFunction) => void, | ||
): MiddlewareFunction; | ||
// arity == 4; issue(client, refreshToken, scope, issued); | ||
function refreshToken( | ||
options: Options, | ||
issue: (client: any, refreshToken: string, scope: string[], issued: ExchangeDoneFunction) => void, | ||
): MiddlewareFunction; | ||
// arity == 3; issue(client, refreshToken, issued); | ||
function refreshToken( | ||
options: Options, | ||
issue: (client: any, refreshToken: string, issued: ExchangeDoneFunction) => void, | ||
): MiddlewareFunction; | ||
function refreshToken( | ||
issue: (client: any, refreshToken: string, scope: string[], issued: ExchangeDoneFunction) => void, | ||
): MiddlewareFunction; | ||
function refreshToken( | ||
issue: (client: any, refreshToken: string, issued: ExchangeDoneFunction) => void, | ||
): MiddlewareFunction; | ||
} |
{ | ||
"name": "@types/oauth2orize", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"description": "TypeScript definitions for oauth2orize", | ||
@@ -31,4 +31,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/oauth2orize", | ||
}, | ||
"typesPublisherContentHash": "4b61b7ca4f68dc25f64d16a247c5cd8512c21c2e86101b0f2141a8ce34a626cf", | ||
"typesPublisherContentHash": "9b2265d45f1df73f320d6e3170ace2f72d41408e05d77de27a62ed8eef703932", | ||
"typeScriptVersion": "4.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 25 May 2023 18:32:57 GMT | ||
* Last updated: Sun, 03 Sep 2023 22:33:45 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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18175
385