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.
This commit is contained in:
parent
d9523cc784
commit
e1667461be
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ class LnbitsAPI {
|
|||
|
||||
async getCurrentUser(): Promise<User> {
|
||||
console.log('getCurrentUser called, accessToken:', this.accessToken ? 'present' : 'missing')
|
||||
const user = await this.request<User>('/user')
|
||||
const user = await this.request<User>('/auth')
|
||||
console.log('getCurrentUser response:', user)
|
||||
return user
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue