Use same lock values as mobile clients
[ProtonMail-WebClient.git] / packages / shared / lib / api / memberSessions.js
blobb59e6df32cf0e1e7cb3e6bb8f47ad7bbb7f9ae64
1 export const createSession = (memberID, data) => ({
2     method: 'post',
3     url: `members/${memberID}/sessions`,
4     data,
5 });
7 export const getSessions = (memberID) => ({
8     method: 'get',
9     url: `members/${memberID}/sessions`,
10 });
12 export const revokeSession = (memberID, uid) => ({
13     method: 'delete',
14     url: `members/${memberID}/sessions/${uid}`,
15 });
17 export const revokeSessions = (memberID) => ({
18     method: 'delete',
19     url: `members/${memberID}/sessions`,
20 });