@lvce-editor/auth-worker 3.16.1 → 3.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authWorkerMain.js +3 -0
- package/package.json +1 -1
package/dist/authWorkerMain.js
CHANGED
|
@@ -2449,6 +2449,9 @@ const getAccountProfile = async (backendUrl, accessToken, fetchFn = fetch) => {
|
|
|
2449
2449
|
throw new Error('The backend did not return an account identity.');
|
|
2450
2450
|
}
|
|
2451
2451
|
return {
|
|
2452
|
+
...(typeof value.avatarUrl === 'string' && {
|
|
2453
|
+
avatarUrl: value.avatarUrl
|
|
2454
|
+
}),
|
|
2452
2455
|
displayName: typeof value.displayName === 'string' ? value.displayName : '',
|
|
2453
2456
|
email: typeof value.email === 'string' ? value.email : '',
|
|
2454
2457
|
id: value.id,
|