12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- import { NbAuthStrategyOptions } from '@nebular/auth';
- export interface NamePasswordStrategyModule {
- alwaysFail?: boolean;
- endpoint?: string;
- method?: string;
- redirect?: {
- success?: string | null;
- failure?: string | null;
- };
- defaultErrors?: string[];
- defaultMessages?: string[];
- }
- export interface NamePasswordStrategySuccess {
- key?: string;
- getter?: Function;
- }
- export interface NamePasswordStrategyMessage {
- key?: string;
- getter?: Function;
- }
- export declare class NamePasswordAuthStrategyOptions extends NbAuthStrategyOptions {
- baseEndpoint?: any;
- getPublicKey?: boolean | NamePasswordStrategyModule;
- login?: boolean | NamePasswordStrategyModule;
- createUser?: boolean | NamePasswordStrategyModule;
- updatePasswordForAdmin?: boolean | NamePasswordStrategyModule;
- register?: boolean | NamePasswordStrategyModule;
- requestPass?: boolean | NamePasswordStrategyModule;
- resetPass?: boolean | NamePasswordStrategyModule;
- logout?: boolean | NamePasswordStrategyModule;
- errors?: NamePasswordStrategyMessage;
- messages?: NamePasswordStrategyMessage;
- success?: NamePasswordStrategySuccess;
- validation?: {
- password?: {
- required?: boolean;
- minLength?: number | null;
- maxLength?: number | null;
- regexp?: string | null;
- };
- userName?: {
- required?: boolean;
- minLength?: number | null;
- maxLength?: number | null;
- regexp?: string | null;
- };
- };
- }
- export declare const namePasswordStrategyOptions: NamePasswordAuthStrategyOptions;
|