mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* added rollup-plugin-peer-deps-external * fixed error * added oauth2-implicit * corrected formatting * removed unused files * corrected version
35 lines
1.0 KiB
TypeScript
35 lines
1.0 KiB
TypeScript
// 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[];
|
|
}
|
|
|
|
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;
|
|
}
|