MCPcopy
hub / github.com/prisma/prisma / getCredentials

Method getCredentials

packages/credentials-store/src/index.ts:64–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 }
63
64 async getCredentials(): Promise<Credentials[]> {
65 if (this.loadedCredentials === undefined) {
66 await this.reloadCredentialsFromDisk()
67 }
68 return this.loadedCredentials || []
69 }
70
71 async getCredentialsForWorkspace(workspaceId: string): Promise<Credentials | undefined> {
72 return (await this.getCredentials()).filter((c) => c.workspaceId === workspaceId)[0]

Callers 3

getTokensMethod · 0.80
index.test.tsFile · 0.80

Calls 1

Tested by

no test coverage detected