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

Method hasToken

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

Source from the content-addressed store, hash-verified

78 }
79
80 hasToken(): boolean {
81 const token = this.axiosInstance.defaults.headers.common["Authorization"]?.toString() || "";
82 return token?.replace("Bearer ", "").trim() !== "";
83 }
84
85 async isAuthed(): Promise<boolean> {
86 try {

Callers 8

requestWithRefreshMethod · 0.95
getUserFunction · 0.80
getSettingsFunction · 0.80
listPromptsFunction · 0.80
getUserInstructionsFunction · 0.80
upsertUserInstructionsFunction · 0.80
getProjectInstructionsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected