From 7d02927032aa4e2b72ab0857fbde84b8a87396e9 Mon Sep 17 00:00:00 2001 From: David Myriel Date: Tue, 18 Jun 2024 04:03:22 -0700 Subject: [PATCH] Update qdrant-landing/content/articles/data-privacy.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Kacper Ɓukawski --- qdrant-landing/content/articles/data-privacy.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/qdrant-landing/content/articles/data-privacy.md b/qdrant-landing/content/articles/data-privacy.md index a1022f3b5..f84db8638 100644 --- a/qdrant-landing/content/articles/data-privacy.md +++ b/qdrant-landing/content/articles/data-privacy.md @@ -84,15 +84,12 @@ import jwt import datetime # Define your API key and other payload data -api_key = 'your_api_key' +api_key = "your_api_key" payload = { ... } -token = jwt.encode(payload, api_key, algorithm='HS256') +token = jwt.encode(payload, api_key, algorithm="HS256") print(token) - - - ``` Once you have generated the token, you should include it in the subsequent requests. You can do so by providing it as a bearer token in the Authorization header, or in the API Key header of your requests.