feat(flickr): add authentication

This commit is contained in:
Ali BARIN
2022-10-21 01:33:40 +02:00
parent 05075fc1c4
commit 71d6a57cdc
19 changed files with 380 additions and 814 deletions

View File

@@ -0,0 +1,17 @@
import { IGlobalVariable } from '@automatisch/types';
const isStillVerified = async ($: IGlobalVariable) => {
try {
const params = {
method: 'flickr.test.login',
format: 'json',
nojsoncallback: 1,
}
const response = await $.http.get('/rest', { params });
return !!response.data.user.id;
} catch (error) {
return false;
}
};
export default isStillVerified;