Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/gitpod-db/src/personal-access-token-db.ts
2497 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
import { DBPersonalAccessToken } from "./typeorm/entity/db-personal-access-token";
8
9
export const PersonalAccessTokenDB = Symbol("PersonalAccessTokenDB");
10
export interface PersonalAccessTokenDB {
11
getByHash(hash: string, expiry?: Date): Promise<DBPersonalAccessToken | undefined>;
12
}
13
14