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
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: Tue, 07 Nov 2023 0939 GMT
- Dependencies: none
Credits
These definitions were written by Max Boguslavskiy.