diff --git a/docs/fern/docs/pages/rest-api/examples.mdx b/docs/fern/docs/pages/rest-api/examples.mdx index 420977a83..9ad24e569 100644 --- a/docs/fern/docs/pages/rest-api/examples.mdx +++ b/docs/fern/docs/pages/rest-api/examples.mdx @@ -32,6 +32,9 @@ On the server side, you can extract the access token and refresh token from the ```javascript const url = 'https://api.stack-auth.com/v1/api/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-access-token': 'access token from headers', 'x-stack-refresh-token': 'refresh token from headers' }; @@ -54,6 +57,9 @@ On the server side, you can extract the access token and refresh token from the url = 'https://api.stack-auth.com/v1/api/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-access-token': 'access token from headers', 'x-stack-refresh-token': 'refresh token from headers' }