"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/lib/services/rest/routes/auth.ts" between
joplin-2.1.8.tar.gz and joplin-2.1.9.tar.gz

About: Joplin is a cross-platform note taking and to-do application with synchronisation capabilities.

auth.ts  (joplin-2.1.8):auth.ts  (joplin-2.1.9)
skipping to change at line 22 skipping to change at line 22
type: 'API_AUTH_TOKEN_SET', type: 'API_AUTH_TOKEN_SET',
value: authToken, value: authToken,
}); });
return { auth_token: authToken }; return { auth_token: authToken };
} }
if (request.method === 'GET') { if (request.method === 'GET') {
if (id === 'check') { if (id === 'check') {
if ('auth_token' in request.query) { if ('auth_token' in request.query) {
if (request.query.auth_token === context.authToke n.value) { if (context.authToken && request.query.auth_token === context.authToken.value) {
const output: any = { const output: any = {
status: context.authToken.status, status: context.authToken.status,
}; };
if (context.authToken.status === AuthToke nStatus.Accepted) { if (context.authToken.status === AuthToke nStatus.Accepted) {
output.token = context.token; output.token = context.token;
} }
return output; return output;
} else { } else {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)