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:
committed by
Facebook GitHub Bot
parent
c1f161045c
commit
48b0eb8f18
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user