UNPKG

1.11 kBTypeScriptView Raw
1import { AuthenticationClient, AuthenticationClientOptions } from './core';
2import * as hooks from './hooks';
3import { Application } from '@feathersjs/feathers';
4import { Storage, MemoryStorage, StorageWrapper } from './storage';
5declare module '@feathersjs/feathers/lib/declarations' {
6 interface Application<Services, Settings> {
7 io: any;
8 rest?: any;
9 authentication: AuthenticationClient;
10 authenticate: AuthenticationClient['authenticate'];
11 reAuthenticate: AuthenticationClient['reAuthenticate'];
12 logout: AuthenticationClient['logout'];
13 }
14}
15export declare const getDefaultStorage: () => MemoryStorage | StorageWrapper;
16export { AuthenticationClient, AuthenticationClientOptions, Storage, MemoryStorage, hooks };
17export type ClientConstructor = new (app: Application, options: AuthenticationClientOptions) => AuthenticationClient;
18export declare const defaultStorage: Storage;
19export declare const defaults: AuthenticationClientOptions;
20declare const init: (_options?: Partial<AuthenticationClientOptions>) => (app: Application) => void;
21export default init;