MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / login

Method login

src/lib/auth.js:160–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158 }
159
160 async login() {
161 return new Promise((resolve, reject) => {
162 customTab(`${config.BASE_URL}/login?redirect=app`).catch((err) => {
163 console.error("Custom tab error", err);
164 reject("Failed to open browser");
165 });
166
167 this.#loginCallbacks.add({ resolve, reject });
168 });
169 }
170}
171
172export default new AuthService();

Callers 4

index.jsFile · 0.80
asyncFunction · 0.80
callbackFunction · 0.80
runMethod · 0.80

Calls 3

customTabFunction · 0.85
addMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected