1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 21:29:43 +02:00
planka/client/src/api/access-tokens.js

18 lines
512 B
JavaScript
Raw Normal View History

2019-08-31 04:07:25 +05:00
import http from './http';
/* Actions */
const createAccessToken = (data, headers) =>
http.post('/access-tokens?withHttpOnlyToken=true', data, headers);
2023-10-17 19:18:19 +02:00
2023-10-19 16:05:34 +02:00
const exchangeForAccessTokenUsingOidc = (data, headers) =>
http.post('/access-tokens/exchange-using-oidc?withHttpOnlyToken=true', data, headers);
2019-08-31 04:07:25 +05:00
const deleteCurrentAccessToken = (headers) => http.delete('/access-tokens/me', undefined, headers);
2019-08-31 04:07:25 +05:00
export default {
createAccessToken,
2023-10-19 16:05:34 +02:00
exchangeForAccessTokenUsingOidc,
deleteCurrentAccessToken,
2019-08-31 04:07:25 +05:00
};