MCPcopy
hub / github.com/simstudioai/sim / readPendingOAuthCredentialDraft

Function readPendingOAuthCredentialDraft

apps/sim/lib/credentials/client-state.ts:32–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32export function readPendingOAuthCredentialDraft(): PendingOAuthCredentialDraft | null {
33 if (typeof window === 'undefined') return null
34 return parseJson<PendingOAuthCredentialDraft>(
35 window.sessionStorage.getItem(PENDING_OAUTH_CREDENTIAL_DRAFT_KEY)
36 )
37}
38
39export function writePendingOAuthCredentialDraft(payload: PendingOAuthCredentialDraft) {
40 if (typeof window === 'undefined') return

Callers

nothing calls this directly

Calls 2

getItemMethod · 0.80
parseJsonFunction · 0.70

Tested by

no test coverage detected