UNPKG

@gapi/auth

Version:

##### For questions/issues you can write ticket [here](http://gitlab.youvolio.com/Stradivario/gapi-auth/issues) ##### This module is intended to be used with [rxdi](https://github.com/rxdi/core) or [gapi](https://github.com/Stradivario/gapi)

22 lines (21 loc) 615 B
import { InjectionToken } from '@rxdi/core'; export declare const AUTH_MODULE_CONFIG: InjectionToken<unknown>; export interface AuthInterface { onSubOperation(message: any, params: any, webSocket: any): unknown; onSubConnection(connectionParams: any): TokenData; validateToken(token: any, requestType: 'Query' | 'Subscription'): any; } export interface TokenData { email: string; scope: Array<string>; id: number; } export interface AuthModuleConfig { cert: unknown; algorithm: string; cyper: { algorithm: string; privateKey: string; iv: string; }; }