MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / isAuthed

Method isAuthed

webapp/_webapp/src/libs/apiclient.ts:85–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83 }
84
85 async isAuthed(): Promise<boolean> {
86 try {
87 const response = await this.get("/users/@self");
88 const user = fromJson(GetUserResponseSchema, response);
89 return user.user?.id !== "";
90 } catch {
91 return false;
92 }
93 }
94
95 async refresh() {
96 if (this.refreshPromise) {

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
fromJsonFunction · 0.90

Tested by

no test coverage detected