Skip to content

Commit 31af6d8

Browse files
Acrolinx
1 parent 3da14f4 commit 31af6d8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/static-apps/user-information.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ ms.author: cshoe
1111

1212
# Accessing user information in Azure Static Web Apps
1313

14-
Azure Static Web Apps provides authentication-related user information via a [direct access 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).
1515

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 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.
1717

1818
## Client principal data
1919

@@ -39,9 +39,9 @@ The following example is a sample decoded `x-ms-client-principal` object:
3939
}
4040
```
4141

42-
## Direct access endpoint
42+
## Direct-access endpoint
4343

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.
4545

4646
For logged-in users, the response contains a client principal JSON object. Requests from unauthenticated users returns `null`.
4747

@@ -89,7 +89,7 @@ async function getUser() {
8989
console.log(getUser());
9090
```
9191

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.
9393

9494
## Next steps
9595

0 commit comments

Comments
 (0)