You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/static-web-apps/user-information.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ You can send a `GET` request to the `/.auth/me` route and receive direct access
43
43
44
44
For logged-in users, the response contains a client principal JSON object. Requests from unauthenticated users returns `null`.
45
45
46
-
Using the [fetch](https://developer.mozilla.org/docs/Web/API/Fetch_API/Using_Fetch)\* API, you can access the client principal data using the following syntax.
46
+
Using the [fetch](https://developer.mozilla.org/docs/Web/API/Fetch_API/Using_Fetch)<sup>1</sup> API, you can access the client principal data using the following syntax.
47
47
48
48
```javascript
49
49
asyncfunctiongetUserInfo() {
@@ -60,7 +60,7 @@ console.log(getUserInfo());
60
60
61
61
Client principal data is passed to API functions in the `x-ms-client-principal` request header. The client principal data is sent as a [Base64](https://www.wikipedia.org/wiki/Base64)-encoded string containing a serialized JSON object.
62
62
63
-
The following example function, named `user`, shows how to read and return user information.
63
+
The following example function shows how to read and return user information.
Using the [fetch](https://developer.mozilla.org/docs/Web/API/Fetch_API/Using_Fetch)\* browser API, you can access the API's response using the following syntax.
79
+
Assuming the above function is named `user`, you can use the [fetch](https://developer.mozilla.org/docs/Web/API/Fetch_API/Using_Fetch)<sup>1</sup> browser API to access the API's response using the following syntax.
80
80
81
81
```javascript
82
82
asyncfunctiongetUser() {
@@ -89,7 +89,7 @@ async function getUser() {
89
89
console.log(getUser());
90
90
```
91
91
92
-
\* The [fetch](https://caniuse.com/#feat=fetch) API and [await](https://caniuse.com/#feat=mdn-javascript_operators_await) operator aren't supported in Internet Explorer.
92
+
<sup>1</sup> The [fetch](https://caniuse.com/#feat=fetch) API and [await](https://caniuse.com/#feat=mdn-javascript_operators_await) operator aren't supported in Internet Explorer.
0 commit comments