7167-testToMaster_2414 #2244

Merged
alexm merged 643 commits from 7167-testToMaster_2414 into master 2024-04-04 05:32:41 +00:00
1 changed files with 26 additions and 0 deletions
Showing only changes of commit 23b3fb81f9 - Show all commits

View File

@ -31,6 +31,32 @@ module.exports = function(Self) {
message: `A client with that Web User name already exists`
});
Self.remoteMethod('logoutMultimedia', {
description: 'Logout current MultimediaToken',
accepts: [{
arg: 'ctx',
type: 'Object',
http: {source: 'context'}
}],
returns: {
type: 'Boolean',
root: true
},
http: {
verb: 'POST',
path: '/logoutMultimedia'
},
accessScopes: ['read:multimedia']
});
Self.logoutMultimedia = async function(ctx) {
let {accessToken} = ctx.req;
try {
Self.logout(accessToken.id);
return true;
} catch (error) {
return error;
}
};
Self.remoteMethod('getCurrentUserData', {
description: 'Gets the current user data',
accepts: [