// Type definitions for oauth2-implicit 0.7 // Project: https://github.com/jasonkuhrt/oauth2-implicit // Definitions by: Vladimir Grenaderov , // Max Boguslavskiy // 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; }