@coko/server
Version:
Reusable server for use by Coko's projects
15 lines • 942 B
TypeScript
import Identity from './identity.model';
import { QueryResult } from '../base.model';
declare const getUserIdentities: (userId: any) => Promise<QueryResult<Identity>>;
declare const getDefaultIdentity: (userId: any) => Promise<Identity>;
declare const hasValidRefreshToken: (identity: any) => boolean;
/**
* Authorise user OAuth.
* Save OAuth access and refresh tokens.
* Trigger subscription indicating the identity has changed.
*/
declare const createOAuthIdentity: (userId: any, provider: any, sessionState: any, code: any) => Promise<Identity>;
declare const invalidateProviderAccessToken: (userId: any, providerLabel: any) => Promise<void>;
declare const invalidateProviderTokens: (userId: any, providerLabel: any) => Promise<void>;
export { createOAuthIdentity, getUserIdentities, getDefaultIdentity, hasValidRefreshToken, invalidateProviderAccessToken, invalidateProviderTokens, };
//# sourceMappingURL=identity.controller.d.ts.map