Skip to content

Commit 10e3020

Browse files
authored
Fix UserDTO Link
1 parent b2b5c8d commit 10e3020

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

authentication.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const authRes = await window.Pi.authenticate(scopes, onIncompletePaymentFound);
1212
```
1313

1414
### 2. Make a GET request to `/me` Pi API endpoint using the access token for verification
15-
To verify the data you got in step 1, you need to make a GET request to `/me` Pi API endpoint, with the access token included in the header. If the access token is valid, it will return a response with [UserDTO](./platform_API#UserDTO). However, if the token is invalid, it will return HTTP 401 Unauthorized code.
15+
To verify the data you got in step 1, you need to make a GET request to `/me` Pi API endpoint, with the access token included in the header. If the access token is valid, it will return a response with [UserDTO](./platform_API.md#UserDTO). However, if the token is invalid, it will return HTTP 401 Unauthorized code.
1616
```javascript
1717
const me = await axios.get('https://api.minepi.com/v2/me', {headers: {'Authorization': `Bearer ${accessToken}}});
18-
```
18+
```

0 commit comments

Comments
 (0)