From e1667461be12e2a38b23b986d47ad11859fd1e64 Mon Sep 17 00:00:00 2001 From: padreug Date: Fri, 1 Aug 2025 23:18:21 +0200 Subject: [PATCH] fix: Update getCurrentUser method to use correct API endpoint - Change the API request in getCurrentUser from '/user' to '/auth' to align with the updated authentication flow. --- src/lib/api/lnbits.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/api/lnbits.ts b/src/lib/api/lnbits.ts index ed87ca5..4b37e11 100644 --- a/src/lib/api/lnbits.ts +++ b/src/lib/api/lnbits.ts @@ -152,7 +152,7 @@ class LnbitsAPI { async getCurrentUser(): Promise { console.log('getCurrentUser called, accessToken:', this.accessToken ? 'present' : 'missing') - const user = await this.request('/user') + const user = await this.request('/auth') console.log('getCurrentUser response:', user) return user }