Summary: * We are now using `flipper.oAuthToken` to store our token in the keychain * If there is no Flipper token, we copy the Nuclide token (once) * If the user signs out of Flipper, only the flipper token is removed from the keychain, not the nuclide token * the Nuclide token is not copied anymore Reviewed By: passy Differential Revision: D14598658 fbshipit-source-id: ab0646b35575bd4b2e433d62bb98635f6d127fd2
44 lines
874 B
JavaScript
44 lines
874 B
JavaScript
/**
|
|
* Copyright 2018-present Facebook.
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
* @format
|
|
*/
|
|
|
|
export function getUser() {
|
|
return Promise.reject();
|
|
}
|
|
|
|
export async function graphQLQuery(query: string) {
|
|
return Promise.reject();
|
|
}
|
|
|
|
export function logoutUser(): Promise<void> {
|
|
return Promise.reject();
|
|
}
|
|
|
|
export async function shareFlipperData(
|
|
trace: string,
|
|
): Promise<
|
|
| {
|
|
id: string,
|
|
os: 'string',
|
|
deviceType: string,
|
|
plugins: string[],
|
|
fileUrl: string,
|
|
flipperUrl: string,
|
|
}
|
|
| {
|
|
error: string,
|
|
error_class: string,
|
|
stacktrace: string,
|
|
},
|
|
> {
|
|
new window.Notification('Feature not implemented');
|
|
return Promise.reject();
|
|
}
|
|
|
|
export async function writeKeychain(token: string) {
|
|
return Promise.reject();
|
|
}
|