1 | import { AuthenticationClient, AuthenticationClientOptions } from './core';
|
2 | import * as hooks from './hooks';
|
3 | import { Application } from '@feathersjs/feathers';
|
4 | import { Storage, MemoryStorage, StorageWrapper } from './storage';
|
5 | declare 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 | }
|
15 | export declare const getDefaultStorage: () => MemoryStorage | StorageWrapper;
|
16 | export { AuthenticationClient, AuthenticationClientOptions, Storage, MemoryStorage, hooks };
|
17 | export type ClientConstructor = new (app: Application, options: AuthenticationClientOptions) => AuthenticationClient;
|
18 | export declare const defaultStorage: Storage;
|
19 | export declare const defaults: AuthenticationClientOptions;
|
20 | declare const init: (_options?: Partial<AuthenticationClientOptions>) => (app: Application) => void;
|
21 | export default init;
|