MCPcopy Index your code
hub / github.com/Dispatcharr/Dispatcharr / login

Method login

frontend/src/api.js:179–191  ·  view source on GitHub ↗
(username, password)

Source from the content-addressed store, hash-verified

177 }
178
179 static async login(username, password) {
180 try {
181 const response = await request(`${host}/api/accounts/token/`, {
182 auth: false,
183 method: 'POST',
184 body: { username, password },
185 });
186
187 return response;
188 } catch (e) {
189 errorNotification('Login failed', e);
190 }
191 }
192
193 static async refreshToken(refresh) {
194 try {

Callers 2

auth.jsxFile · 0.45
auth.test.jsxFile · 0.45

Calls 2

requestFunction · 0.85
errorNotificationFunction · 0.85

Tested by

no test coverage detected