fix: Fix mock-api login functionality
Squashed commit of the following: commit 9022427d59290dfd2b08c4a076d6b0690d44d926 Author: Daniel Appelgren <daniel.appelgren@arbetsformedlingen.se> Date: Mon Sep 13 13:25:05 2021 +0200 Update mock-apis
This commit is contained in:
17
mock-api/mina-sidor-fa/scripts/userinfo.js
Normal file
17
mock-api/mina-sidor-fa/scripts/userinfo.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import faker from 'faker';
|
||||
import organizations from './organizations.js';
|
||||
|
||||
faker.locale = 'sv';
|
||||
|
||||
function generateUserInfo() {
|
||||
return {
|
||||
userId: faker.datatype.uuid(),
|
||||
email: faker.internet.email(),
|
||||
signature: 'mocky',
|
||||
roles: ['MSFA_ReportAndPlanning', 'MSFA_ReceiveDeltagare', 'MSFA_Standard', 'MSFA_AuthAdmin'],
|
||||
};
|
||||
}
|
||||
|
||||
export default {
|
||||
generate: generateUserInfo,
|
||||
};
|
||||
Reference in New Issue
Block a user