mirror of
https://github.com/plankanban/planka.git
synced 2025-12-15 01:10:55 +03:00
23 lines
661 B
JavaScript
Executable File
23 lines
661 B
JavaScript
Executable File
/*!
|
|
* Copyright (c) 2024 PLANKA Software GmbH
|
|
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
|
|
*/
|
|
|
|
import http from './http';
|
|
|
|
/* Actions */
|
|
|
|
const createAccessToken = (data, headers) =>
|
|
http.post('/access-tokens?withHttpOnlyToken=true', data, headers);
|
|
|
|
const exchangeForAccessTokenWithOidc = (data, headers) =>
|
|
http.post('/access-tokens/exchange-with-oidc?withHttpOnlyToken=true', data, headers);
|
|
|
|
const deleteCurrentAccessToken = (headers) => http.delete('/access-tokens/me', undefined, headers);
|
|
|
|
export default {
|
|
createAccessToken,
|
|
exchangeForAccessTokenWithOidc,
|
|
deleteCurrentAccessToken,
|
|
};
|