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-apps/user-information.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,9 @@ ms.author: cshoe
11
11
12
12
# Accessing user information in Azure Static Web Apps
13
13
14
-
Azure Static Web Apps provides authentication-related user information via a [directaccess endpoint](#direct-access-endpoint) and to [API functions](#api-functions).
14
+
Azure Static Web Apps provides authentication-related user information via a [direct-access endpoint](#direct-access-endpoint) and to [API functions](#api-functions).
15
15
16
-
Many user interfaces rely heavily on user authentication data. The directaccess endpoint is a helper that exposes user information without having to implement a custom function. Beyond convenience, the directaccess endpoint is not subject to cold start delays associated with serverless architecture.
16
+
Many user interfaces rely heavily on user authentication data. The direct-access endpoint is a helper that exposes user information without having to implement a custom function. Beyond convenience, the direct-access endpoint isn't subject to cold start delays associated with serverless architecture.
17
17
18
18
## Client principal data
19
19
@@ -39,9 +39,9 @@ The following example is a sample decoded `x-ms-client-principal` object:
39
39
}
40
40
```
41
41
42
-
## Directaccess endpoint
42
+
## Direct-access endpoint
43
43
44
-
You can send a `GET` request to the `/.auth/me` route and receive direct access to the client principal data. When the state of your view is relies on authorization data, use this approach for the best performance.
44
+
You can send a `GET` request to the `/.auth/me` route and receive direct access to the client principal data. When the state of your view relies on authorization data, use this approach for the best performance.
45
45
46
46
For logged-in users, the response contains a client principal JSON object. Requests from unauthenticated users returns `null`.
47
47
@@ -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 are not supported in Internet Explorer.
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.
0 commit comments