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:
parent
441a0824cc
commit
ff8ecba6db
6 changed files with 46 additions and 24 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue