@bitblit/ratchet-warden-server
Version:
Typescript library to simplify using simplewebauthn and secondary auth methods over GraphQL
8 lines (7 loc) • 593 B
TypeScript
import { WardenLoginThirdPartyToken } from "@bitblit/ratchet-warden-common/common/model/warden-login-third-party-token";
import { WardenThirdPartyAuthentication } from "@bitblit/ratchet-warden-common/common/model/warden-third-party-authentication";
export interface WardenThirdPartyAuthenticationProvider {
handlesThirdParty(thirdParty: string): boolean;
validateTokenAndReturnThirdPartyUserId(input: WardenLoginThirdPartyToken, origin: string): Promise<WardenThirdPartyAuthentication>;
extractUserLabelFromAuthentication?(auth: WardenThirdPartyAuthentication): Promise<string>;
}