MCPcopy
hub / github.com/prisma/prisma / credentialsToTokens

Function credentialsToTokens

packages/cli/src/management-api/token-storage.ts:15–21  ·  view source on GitHub ↗
(credentials: { workspaceId: string; token: string; refreshToken?: string })

Source from the content-addressed store, hash-verified

13}
14
15function credentialsToTokens(credentials: { workspaceId: string; token: string; refreshToken?: string }): Tokens {
16 return {
17 workspaceId: credentials.workspaceId,
18 accessToken: credentials.token,
19 refreshToken: credentials.refreshToken,
20 }
21}
22
23export class FileTokenStorage implements TokenStorage {
24 private credentialsStore: CredentialsStore

Callers 1

getTokensMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected