@salte-auth/redirect
Version:
A Salte Auth handler for authenticating via Redirect!
28 lines (27 loc) • 819 B
TypeScript
import { Handler } from '@salte-auth/salte-auth';
export declare class Redirect extends Handler {
constructor(config?: Redirect.Config);
get name(): string;
get auto(): boolean;
connected({ action }: Handler.ConnectedOptions): any;
open({ url, timeout }: Redirect.OpenOptions): Promise<void>;
}
export interface Redirect {
config: Redirect.Config;
}
export declare namespace Redirect {
interface Config extends Handler.Config {
/**
* The amount of time in ms before any login / logout requests will timeout.
*
* @default 10000
*/
timeout?: number;
}
interface OpenOptions extends Handler.OpenOptions {
/**
* Override the configured timeout.
*/
timeout?: number;
}
}