MCPcopy Create free account
hub / github.com/atomicdata-dev/atomic-data-browser / isUnauthorized

Method isUnauthorized

lib/src/resource.ts:206–208  ·  view source on GitHub ↗

Returns true is the resource had an `Unauthorized` 401 response.

()

Source from the content-addressed store, hash-verified

204
205 /** Returns true is the resource had an `Unauthorized` 401 response. */
206 isUnauthorized(): boolean {
207 return this.error != undefined && isUnauthorized(this.error);
208 }
209
210 /** Removes the resource form both the server and locally */
211 async destroy(store: Store, agent?: Agent): Promise<void> {

Callers 2

setAgentMethod · 0.80
SideBar.tsxFile · 0.80

Calls 1

isUnauthorizedFunction · 0.90

Tested by

no test coverage detected