Skip to content

Commit e1b3531

Browse files
Claire edits for headings and style
1 parent 9c592f1 commit e1b3531

File tree

1 file changed

+8
-8
lines changed
  • src/content/docs/authenticate/device-authorization-flow

1 file changed

+8
-8
lines changed

src/content/docs/authenticate/device-authorization-flow/api-calls.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ relatedArticles:
1010
- 1cbd91d2-c0b3-45b3-b038-319de1b2c794
1111
---
1212

13-
Once you've received an access token from the Device Authorization Flow, you can use it to call your protected APIs. This guide shows you how to validate tokens, handle scopes, and make authenticated API requests.
13+
Once you've received an access token from the device authorization flow, you can use it to call your protected APIs. This guide shows you how to validate tokens, handle scopes, and make authenticated API requests.
1414

15-
## Using the access token
15+
## Use the access token from the device authorization flow
1616

17-
The access token you receive from Device Authorization Flow is a standard OAuth 2.0 Bearer token. Include it in the `Authorization` header of your API requests:
17+
The access token you receive from the device authorization flow is a standard OAuth 2.0 Bearer token. Include it in the `Authorization` header of your API requests:
1818

1919
```bash
2020
curl -X GET https://your-api.com/protected-resource \
2121
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
2222
```
2323

24-
## Token validation
24+
## Token validation in the device authorization flow
2525

2626
Before processing API requests, validate the access token to ensure it's valid and hasn't expired:
2727

@@ -83,7 +83,7 @@ function validateToken(token) {
8383
}
8484
```
8585

86-
## Scope enforcement
86+
## Scope enforcement for device authorization
8787

8888
Access tokens include scopes that determine what resources the user can access. Check the required scopes before processing requests:
8989

@@ -101,7 +101,7 @@ if (!hasRequiredScope(accessToken, "read:users")) {
101101
}
102102
```
103103

104-
## Common API patterns
104+
## Common API patterns for device authorization
105105

106106
### Protected resource endpoint
107107

@@ -145,7 +145,7 @@ function authenticateToken(req, res, next) {
145145
}
146146
```
147147

148-
### Error handling
148+
### Error handling for device authorization
149149

150150
Handle common token-related errors:
151151

@@ -166,7 +166,7 @@ function handleTokenError(error) {
166166
}
167167
```
168168

169-
## Security best practices
169+
## Security best practices for device authorization
170170

171171
### Token storage
172172

0 commit comments

Comments
 (0)