From bc5b18ee6de354062248bb92fa3da36f880e4ea6 Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Tue, 13 Aug 2024 09:54:27 -0700 Subject: [PATCH] Fix documentation --- docs/fern/docs/pages/rest-api/examples.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/fern/docs/pages/rest-api/examples.mdx b/docs/fern/docs/pages/rest-api/examples.mdx index 9ad24e569..61a431a5a 100644 --- a/docs/fern/docs/pages/rest-api/examples.mdx +++ b/docs/fern/docs/pages/rest-api/examples.mdx @@ -30,11 +30,11 @@ 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 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' }