From 9c7c6e9a58ca3b9bb47f303f105598a4b5401baa Mon Sep 17 00:00:00 2001 From: Vyacheslav1557 Date: Tue, 25 Feb 2025 20:10:39 +0500 Subject: [PATCH] feat(user): delete GetMe endpoint --- proto | 2 +- src/shared/api/ms-auth.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/proto b/proto index b7ea2e6..c1b7fd7 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit b7ea2e6cc71f7393f9afe722204c5c33b6a6f2b6 +Subproject commit c1b7fd7a2d32678641ebd3acfe3d5b2eca5d0c72 diff --git a/src/shared/api/ms-auth.ts b/src/shared/api/ms-auth.ts index a5d0a05..b363e38 100644 --- a/src/shared/api/ms-auth.ts +++ b/src/shared/api/ms-auth.ts @@ -171,7 +171,9 @@ export const GetMe = async () => { } }; - const response = await authApi.getMe(options); + const token = new JWTWithPermissions(decode(session.value) as JWT); + + const response = await authApi.getUser(token.user_id, options); return response.data; };