/*! * 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, };