feat(jotform): prettify screen name

This commit is contained in:
Ali BARIN
2024-08-14 14:12:49 +00:00
parent 27c36b644d
commit 7506bf186b

View File

@@ -3,10 +3,8 @@ import getCurrentUser from '../common/get-current-user.js';
const verifyCredentials = async ($) => {
const user = await getCurrentUser($);
const screenName = [user.username, user.email].filter(Boolean).join(' @ ');
await $.auth.set({
screenName,
screenName: user.name,
apiKey: $.auth.data.apiKey,
});
};