mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
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
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:
parent
b914544e54
commit
bc5b18ee6d
@ -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'
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user