mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-05-04 18:00:38 +03:00
[PR #1214] [MERGED] feat: add option to renew API key #1091
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/1214
Author: @stonith404
Created: 1/7/2026
Status: ✅ Merged
Merged: 1/9/2026
Merged by: @stonith404
Base:
main← Head:feat/renew-api-key📝 Commits (5)
c944b70feat: add option to renew API key7056b4bfix e2e tests70e5487improve naming7d86105Merge branch 'main' into feat/renew-api-keydbab5ccfix e2e tests📊 Changes
16 files changed (+321 additions, -41 deletions)
View changed files
📝
backend/internal/common/errors.go(+7 -0)📝
backend/internal/controller/api_key_controller.go(+36 -0)📝
backend/internal/dto/api_key_dto.go(+4 -0)📝
backend/internal/service/api_key_service.go(+50 -0)📝
backend/internal/service/e2etest_service.go(+22 -9)📝
frontend/messages/en.json(+4 -0)📝
frontend/src/lib/components/form/date-picker.svelte(+12 -15)📝
frontend/src/lib/services/api-key-service.ts(+7 -0)📝
frontend/src/routes/settings/admin/api-keys/+page.svelte(+1 -1)📝
frontend/src/routes/settings/admin/api-keys/api-key-dialog.svelte(+3 -1)📝
frontend/src/routes/settings/admin/api-keys/api-key-form.svelte(+1 -0)📝
frontend/src/routes/settings/admin/api-keys/api-key-list.svelte(+46 -3)➕
frontend/src/routes/settings/admin/api-keys/renew-api-key-modal.svelte(+52 -0)📝
tests/data.ts(+8 -1)📝
tests/resources/export/database.json(+12 -1)📝
tests/specs/api-key.spec.ts(+56 -10)📄 Description
Adds an option to renew API keys:

Closes #1207
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.