@feathersjs/authentication-oauth
Version:
oAuth 1 and 2 authentication for Feathers. Powered by Grant.
18 lines (17 loc) • 798 B
TypeScript
import type { RequestHandler } from 'express';
import type { Middleware } from '@feathersjs/koa';
import type { ServiceOptions } from '@feathersjs/feathers';
import '@feathersjs/koa';
import '@feathersjs/express';
import { AuthenticationService } from '@feathersjs/authentication';
import { GrantConfig } from 'grant';
export interface OauthSetupSettings {
linkStrategy: string;
authService?: string;
expressSession?: RequestHandler;
koaSession?: Middleware;
}
export declare const getGrantConfig: (service: AuthenticationService) => GrantConfig;
export declare const setExpressParams: RequestHandler;
export declare const setKoaParams: Middleware;
export declare const authenticationServiceOptions: (service: AuthenticationService, settings: OauthSetupSettings) => ServiceOptions;