Show login dialog on Flipper startup if user is not logged

Reviewed By: passy

Differential Revision: D28780529

fbshipit-source-id: 7f4c38d8461619fe5995654e23dc5739fc852ccc
This commit is contained in:
Anton Nikolaev
2021-06-02 11:29:11 -07:00
committed by Facebook GitHub Bot
parent c1f161045c
commit 48b0eb8f18
3 changed files with 22 additions and 5 deletions

View File

@@ -17,6 +17,22 @@ export class CancelledPromiseError extends Error {
name: 'CancelledPromiseError';
}
export class UserUnauthorizedError extends Error {
constructor(msg: string = 'User unauthorized.') {
super(msg);
this.name = 'UserUnauthorizedError';
}
name: 'UserUnauthorizedError';
}
export class UserNotSignedInError extends Error {
constructor(msg: string = 'User not signed in.') {
super(msg);
this.name = 'UserNotSignedInError';
}
name: 'UserNotSignedInError';
}
declare global {
interface Error {
interaction?: InteractionReport;