Sync login atom to prescense of token

Summary:
Logged in state now means that we have a valid token. On startup we try to retrieve a token, if its there then we are logged in, if we remove the tokem, due to explicit logout, or if its expired we are logged out.

Connected is more dynamic, it means we can actually hit intern with a sucessful response. It implicitly requires a token / being logged in

Reviewed By: aigoncharov

Differential Revision: D44502482

fbshipit-source-id: e3077101766cba5128a61d62be3bbd1ca1f00b4f
This commit is contained in:
Luke De Feo
2023-03-30 10:05:59 -07:00
committed by Facebook GitHub Bot
parent 5a6091f6f8
commit 3a85835a9a

View File

@@ -96,6 +96,8 @@ export async function getPreferredEditorUriScheme(): Promise<string> {
return 'vscode'; return 'vscode';
} }
export async function initialize(): Promise<void> {}
export async function appendAccessTokenToUrl(_url: URL): Promise<string> { export async function appendAccessTokenToUrl(_url: URL): Promise<string> {
throw new Error('Implement appendAccessTokenToUrl'); throw new Error('Implement appendAccessTokenToUrl');
} }