MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / codexDeviceIsSuccessStatus

Function codexDeviceIsSuccessStatus

sdk/auth/codex_device.go:250–252  ·  view source on GitHub ↗
(code int)

Source from the content-addressed store, hash-verified

248}
249
250func codexDeviceIsSuccessStatus(code int) bool {
251 return code >= 200 && code < 300
252}
253
254func (a *CodexAuthenticator) buildAuthRecord(authSvc *codex.CodexAuth, authBundle *codex.CodexAuthBundle) (*coreauth.Auth, error) {
255 tokenStorage := authSvc.CreateTokenStorage(authBundle)

Callers 2

pollCodexDeviceTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected