File size: 374 Bytes
3206347 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import { authenticate } from '../common/xmlrpc-client.js';
const verifyCredentials = async ($) => {
try {
await authenticate($);
await $.auth.set({
screenName: `${$.auth.data.email} @ ${$.auth.data.databaseName} - ${$.auth.data.host}`,
});
} catch (error) {
throw new Error('Failed while authorizing!');
}
};
export default verifyCredentials;
|