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