feat: Add API key authentication (#1254)

Closes #945
This commit is contained in:
Samuel
2025-11-06 20:56:48 +01:00
committed by GitHub
parent 5a2564f575
commit b4cbd32bf2
75 changed files with 1501 additions and 94 deletions

View File

@@ -141,6 +141,27 @@ const updateCurrentUserAvatar = (data) => ({
},
});
const createUserApiKey = (id) => ({
type: EntryActionTypes.USER_API_KEY_CREATE,
payload: {
id,
},
});
const deleteUserApiKey = (id) => ({
type: EntryActionTypes.USER_API_KEY_DELETE,
payload: {
id,
},
});
const clearUserApiKeyValue = (id) => ({
type: EntryActionTypes.USER_API_KEY_VALUE_CLEAR,
payload: {
id,
},
});
const deleteUser = (id) => ({
type: EntryActionTypes.USER_DELETE,
payload: {
@@ -245,6 +266,9 @@ export default {
clearUserUsernameUpdateError,
clearCurrentUserUsernameUpdateError,
updateCurrentUserAvatar,
createUserApiKey,
deleteUserApiKey,
clearUserApiKeyValue,
deleteUser,
handleUserDelete,
addUserToCard,