feat(jotform): add jotform integration
This commit is contained in:
14
packages/backend/src/apps/jotform/auth/verify-credentials.js
Normal file
14
packages/backend/src/apps/jotform/auth/verify-credentials.js
Normal file
@@ -0,0 +1,14 @@
|
||||
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,
|
||||
apiKey: $.auth.data.apiKey,
|
||||
});
|
||||
};
|
||||
|
||||
export default verifyCredentials;
|
Reference in New Issue
Block a user