public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Fix HTTP
@ 2025-03-11 14:11 Muhammad Rizki
  2025-03-11 14:11 ` [PATCH v1 1/2] fix(http): only logout on 401 `Unauthorized` response Muhammad Rizki
  2025-03-11 14:11 ` [PATCH v1 2/2] chore(profile): refetch user data on profile Muhammad Rizki
  0 siblings, 2 replies; 3+ messages in thread
From: Muhammad Rizki @ 2025-03-11 14:11 UTC (permalink / raw)
  To: Ammar Faizi
  Cc: Muhammad Rizki, Alviro Iskandar Setiawan, GNU/Weeb Mailing List

Hi sir,
This series is to fix the HTTP interceptor which for handling response,
additionally, I add a method to refetch `get_user_info` API to get the
latest users data to prevent `localStorage` manipulation during profile
form.

Give it a test for related issue, thanks.

Muhammad Rizki (2):
  fix(http): only logout on 401 `Unauthorized` response
  chore(profile): refetch user data on profile

 src/lib/hooks/http.svelte.ts                  |  2 +-
 .../(protected)/settings/profile/+page.ts     | 34 ++++++++++++++-----
 2 files changed, 27 insertions(+), 9 deletions(-)


base-commit: 39e4cd1c605ca5a47eb4b5fbb58db2ea2783fd5e
--
Muhammad Rizki

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-03-11 14:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-11 14:11 [PATCH v1 0/2] Fix HTTP Muhammad Rizki
2025-03-11 14:11 ` [PATCH v1 1/2] fix(http): only logout on 401 `Unauthorized` response Muhammad Rizki
2025-03-11 14:11 ` [PATCH v1 2/2] chore(profile): refetch user data on profile Muhammad Rizki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox