import { IHubJoinRequestBase } from './hubs'; /** * The magic hub join request payload * * @export * @interface IHubMagicLinkJoinRequest */ export interface IHubMagicLinkJoinRequest extends IHubJoinRequestBase { requestToken: string; confirmedCallback?: (confirmedEvent: IHubEventMagicLinkConfirmed) => void; } /** * Used to start listening to a magic link token for confirmation * * @export * @interface ISubscribeToMagicLink */ export interface ISubscribeToMagicLink { RequestToken: string; } /** * The confirmation message for a magic login token. * This temporary token can be used for a limited time to perform a login * using the token as the `Password` value * * @export * @interface IHubEventMagicLinkConfirmed */ export interface IHubEventMagicLinkConfirmed { TemporaryToken: string; }