Skip to content

Commit

Permalink
Add bearer token example
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasWanke committed May 23, 2024
1 parent a294a85 commit c359066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/s3-api-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ curl --location --request POST 'http://api-url/posts' \

## Authentication

The API uses a simple authentication mechanism. The user must provide a valid username to access the API. The username is sent as a JSON object in the request body. The API will respond with a JSON Web Token (JWT) that must be included in the `Authorization` header of all subsequent requests using the `Bearer` scheme. Additionally, the API will respond with the user's ID, which is required to access the authenticated user's profile.
The API uses a simple authentication mechanism. The user must provide a valid username to access the API. The username is sent as a JSON object in the request body. The API will respond with a JSON Web Token (JWT) that must be included in the `Authorization` header of all subsequent requests using the `Bearer` scheme (`Authorization: Bearer <JWT>`, e.g., `Authorization: Bearer ey…`). Additionally, the API will respond with the user's ID, which is required to access the authenticated user's profile.

<details>
<summary>View details</summary>
Expand Down

0 comments on commit c359066

Please sign in to comment.