UNPKG

549 BTypeScriptView Raw
1import { User, DatabaseInterface, AuthenticationService } from '@accounts/types';
2import { AccountsServer } from '@accounts/server';
3import { OAuthOptions } from './types/oauth-options';
4export declare class AccountsOauth implements AuthenticationService {
5 server: AccountsServer;
6 serviceName: string;
7 private db;
8 private options;
9 constructor(options: OAuthOptions);
10 setStore(store: DatabaseInterface): void;
11 authenticate(params: any): Promise<User | null>;
12 unlink(userId: string, provider: string): Promise<void>;
13}