1 | import { User, DatabaseInterface, AuthenticationService } from '@accounts/types';
|
2 | import { AccountsServer } from '@accounts/server';
|
3 | import { OAuthOptions } from './types/oauth-options';
|
4 | export 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 | }
|