0.7.4 • Published 6 months ago
@types/oauth2-implicit v0.7.4
Installation
npm install --save @types/oauth2-implicit
Summary
This package contains type definitions for oauth2-implicit (https://github.com/jasonkuhrt/oauth2-implicit).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/oauth2-implicit.
index.d.ts
// Type definitions for oauth2-implicit 0.7
// Project: https://github.com/jasonkuhrt/oauth2-implicit
// Definitions by: Vladimir Grenaderov <https://github.com/VladimirGrenaderov>,
// Max Boguslavskiy <https://github.com/maxbogus>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface AuthState {
[key: string]: any;
originalUrl: string;
}
export interface AuthParams {
auth_uri: string;
client_id: string;
state: AuthState;
redirect_uri: string;
scope?: string[] | undefined;
}
export interface AuthResult {
accessToken: string;
state: AuthState;
}
export function finish(): AuthResult | undefined | null;
export function parseCredentials(hashString: string): AuthParams;
export function run(options: any): any;
export function start(options: AuthParams): void;
export namespace run {
function finish(): AuthResult | undefined | null;
function parseCredentials(hashString: string): AuthParams;
function start(options: AuthParams): void;
}
Additional Details
- Last updated: Thu, 08 Jul 2021 18:51:43 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Vladimir Grenaderov, and Max Boguslavskiy.