Fix documentation
Some checks are pending
Runs E2E API Tests / build (20.x) (push) Waiting to run
Runs E2E API Tests / build (22.x) (push) Waiting to run
Lint & build / lint_and_build (20.x) (push) Waiting to run
Lint & build / lint_and_build (22.x) (push) Waiting to run
TOC Generator / TOC Generator (push) Waiting to run

This commit is contained in:
Konstantin Wohlwend 2024-08-13 09:54:27 -07:00
parent b914544e54
commit bc5b18ee6d

View File

@ -30,11 +30,11 @@ On the server side, you can extract the access token and refresh token from the
<Tabs>
<Tab title="Node.js">
```javascript
const url = 'https://api.stack-auth.com/v1/api/users/me';
const url = 'https://api.stack-auth.com/api/v1/users/me';
const headers = {
'x-stack-access-type': 'server',
'x-stack-project-id': 'generated from the Stack dashboard',
'x-stack-server-secret': 'generated from the Stack dashboard',
'x-stack-secret-server-key': 'generated from the Stack dashboard',
'x-stack-access-token': 'access token from headers',
'x-stack-refresh-token': 'refresh token from headers'
};
@ -55,11 +55,11 @@ On the server side, you can extract the access token and refresh token from the
```python
import requests
url = 'https://api.stack-auth.com/v1/api/users/me'
url = 'https://api.stack-auth.com/api/v1/users/me'
headers = {
'x-stack-access-type': 'server',
'x-stack-project-id': 'generated from the Stack dashboard',
'x-stack-server-secret': 'generated from the Stack dashboard',
'x-stack-secret-server-key': 'generated from the Stack dashboard',
'x-stack-access-token': 'access token from headers',
'x-stack-refresh-token': 'refresh token from headers'
}