Skip to content

Commit 94b8a98

Browse files
committed
Update user profile retrieval endpoint in PasskeyAuthClient
- Changed the API endpoint for fetching user profiles from `/api/auth/me` to `/api/auth/external` to align with updated backend specifications. - Simplified logging message for user profile retrieval to enhance clarity.
1 parent 62edc09 commit 94b8a98

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

public/passkey-client.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ class PasskeyAuthClient {
261261
}
262262

263263
try {
264-
this._log('Getting user profile with token:', this.token ? 'present' : 'missing');
264+
this._log('Getting user profile...');
265265

266-
const profile = await this._request(`${this.baseUrl}/api/auth/me`, {
266+
const profile = await this._request(`${this.baseUrl}/api/auth/external`, {
267267
method: 'GET',
268268
headers: {
269269
'Authorization': `Bearer ${this.token}`

public/passkey-client.min.js

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)