MCPcopy
hub / github.com/21st-dev/1code / getRefreshToken

Method getRefreshToken

src/main/auth-store.ts:174–177  ·  view source on GitHub ↗

* Get refresh token

()

Source from the content-addressed store, hash-verified

172 * Get refresh token
173 */
174 getRefreshToken(): string | null {
175 const data = this.load()
176 return data?.refreshToken ?? null
177 }
178
179 /**
180 * Check if token needs refresh (expires in less than 5 minutes)

Callers 1

refreshMethod · 0.80

Calls 1

loadMethod · 0.95

Tested by

no test coverage detected