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
+4
View File
@@ -33,6 +33,9 @@ const updateUserUsername = (id, data, headers) =>
const updateUserAvatar = (id, data, headers) => http.post(`/users/${id}/avatar`, data, headers);
const createUserApiKey = (userId, headers) =>
socket.post(`/users/${userId}/api-key`, undefined, headers);
const deleteUser = (id, headers) => socket.delete(`/users/${id}`, undefined, headers);
export default {
@@ -45,5 +48,6 @@ export default {
updateUserPassword,
updateUserUsername,
updateUserAvatar,
createUserApiKey,
deleteUser,
};