MCPcopy Create free account
hub / github.com/arctic-cli/interface / parseRefreshParts

Function parseRefreshParts

packages/arctic/src/provider/usage.ts:1013–1024  ·  view source on GitHub ↗
(refresh: string)

Source from the content-addressed store, hash-verified

1011 }
1012
1013 function parseRefreshParts(refresh: string): {
1014 refreshToken: string
1015 projectId?: string
1016 managedProjectId?: string
1017 } {
1018 const [refreshToken = "", projectId = "", managedProjectId = ""] = (refresh ?? "").split("|")
1019 return {
1020 refreshToken,
1021 projectId: projectId || undefined,
1022 managedProjectId: managedProjectId || undefined,
1023 }
1024 }
1025
1026 function formatRefreshParts(parts: {
1027 refreshToken: string

Callers 2

ensureGoogleAccessTokenFunction · 0.70
ensureProjectContextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected