Skip to content

Commit

Permalink
refactor: og title for JWT auth templates
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-mo-143 committed Dec 17, 2024
1 parent 65fafd9 commit 965058e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/actix-cookie-authentication.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "Cookie Authentication"
'og:title': "Cookie Authentication with Actix Web"
description: "Explore how you can secure your Actix Web application by using cookies."
---

Expand Down Expand Up @@ -110,7 +111,7 @@ async fn actix_web() -> ShuttleActixWeb<impl FnOnce(&mut ServiceConfig) + Send +
.build(),
)
.wrap(middleware::NormalizePath::trim())
.wrap(middleware::Logger::default())
.wrap(middleware::Logger::default())
);

};
Expand Down
3 changes: 2 additions & 1 deletion examples/axum-jwt-authentication.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "JWT Authentication"
'og:title': "JWT Authentication with Axum"
description: "Learn how you can secure your Axum web application by using JWT tokens."
---

Expand Down Expand Up @@ -230,7 +231,7 @@ tracing-subscriber = "0.3.17"
## Usage

Once you've cloned this example, launch it locally by using `shuttle run`. Once you've verified that it's up, you'll now be able to go to `http://localhost:8000` and start trying the example out!

First, we should be able to access the public endpoint without any authentication using:

```sh
Expand Down
1 change: 1 addition & 0 deletions examples/rocket-jwt-authentication.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "JWT Authentication"
'og:title': "JWT Authentication with Rocket"
description: "Learn how you can secure your Rocket web application by using JWT tokens."
---

Expand Down

0 comments on commit 965058e

Please sign in to comment.