1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

showing needs_register dialog

This commit is contained in:
Fedor Katurov 2020-08-19 18:53:50 +07:00
parent 441a0824cc
commit ff8ecba6db
6 changed files with 46 additions and 24 deletions

View file

@ -207,13 +207,16 @@ export interface IEmbed {
};
}
export type IOAuthEvent = MessageEvent & {
data: {
type: 'oauth_processed' | 'oauth_error';
payload: {
token: string;
error: string;
needs_register: boolean;
};
export const OAUTH_EVENT_TYPES = {
OAUTH_PROCESSED: 'oauth_processed',
OAUTH_ERROR: 'oauth_error',
};
export type IOAuthEvent = {
type: typeof OAUTH_EVENT_TYPES[keyof typeof OAUTH_EVENT_TYPES];
payload: {
token: string;
error: string;
needs_register: boolean;
};
};