MCPcopy Index your code
hub / github.com/21st-dev/1code / constructor

Method constructor

src/main/auth-manager.ts:19–27  ·  view source on GitHub ↗
(isDev: boolean = false)

Source from the content-addressed store, hash-verified

17 private onTokenRefresh?: (authData: AuthData) => void
18
19 constructor(isDev: boolean = false) {
20 this.store = new AuthStore(app.getPath("userData"))
21 this.isDev = isDev
22
23 // Schedule refresh if already authenticated
24 if (this.store.isAuthenticated()) {
25 this.scheduleRefresh()
26 }
27 }
28
29 /**
30 * Set callback to be called when token is refreshed

Callers

nothing calls this directly

Calls 2

scheduleRefreshMethod · 0.95
isAuthenticatedMethod · 0.45

Tested by

no test coverage detected