@apideck/react-vault
Version:
<br />
22 lines (21 loc) • 527 B
TypeScript
export interface OAuthCompleteMessage {
type: 'oauth_complete';
nonce: string;
confirmToken: string;
serviceId: string;
success: boolean;
}
export interface OAuthErrorMessage {
type: 'oauth_error';
error: string;
errorDescription: string;
serviceId: string;
}
export declare type OAuthPostMessage = OAuthCompleteMessage | OAuthErrorMessage;
export interface ConfirmResponse {
status_code: number;
status: string;
data: {
confirmed: boolean;
};
}