From c9f6642c1fbcf3f7e10982fe76ff78c36fe5874a Mon Sep 17 00:00:00 2001 From: Zai Shi Date: Wed, 24 Jul 2024 17:02:05 -0700 Subject: [PATCH] fixed server example docs --- docs/fern/docs/pages/rest-api/examples.mdx | 6 ++++++ 1 file changed, 6 insertions(+) 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' }