Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/gitpod-protocol/src/auth.ts
2498 views
1
/**
2
* Copyright (c) 2021 Gitpod GmbH. All rights reserved.
3
* Licensed under the GNU Affero General Public License (AGPL).
4
* See License.AGPL.txt in the project root for license information.
5
*/
6
7
export interface SelectAccountPayload {
8
currentUser: {
9
name: string;
10
avatarUrl: string;
11
authHost: string;
12
authName: string;
13
authProviderType: string;
14
};
15
otherUser: {
16
name: string;
17
avatarUrl: string;
18
authHost: string;
19
authName: string;
20
authProviderType: string;
21
};
22
}
23
export namespace SelectAccountPayload {
24
export function is(data: any): data is SelectAccountPayload {
25
return typeof data === "object" && "currentUser" in data && "otherUser" in data;
26
}
27
}
28
29