From 4bc804826c41a7ffdc09f993943a556a744ede43 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Thu, 5 Sep 2024 01:07:04 +0000 Subject: [PATCH 1/3] Documentation edits made through Mintlify web editor --- advanced/user-auth/jwt.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/advanced/user-auth/jwt.mdx b/advanced/user-auth/jwt.mdx index c5d2469e0..0e9cf291e 100644 --- a/advanced/user-auth/jwt.mdx +++ b/advanced/user-auth/jwt.mdx @@ -30,3 +30,7 @@ I want to set up authentication for my docs hosted at `docs.foo.com`. I want my To set up authentication with Mintlify, I go to my Mintlify dashboard and generate a JWT secret. I create a web URL `https://foo.com/docs-login` that initiates a login flow for my users. At the end of this login flow, once I have verified the identity of the user, I create a JWT containing the user’s custom data according to Mintlify’s specification. I sign this JWT with my Mintlify secret, create a redirect URL of the form `https://docs.foo.com#{SIGNED_JWT}`, and redirect the user. I then go to the Mintlify dashboard settings and enter `https://foo.com/docs-login` for the Login URL field. + +## Preserving Anchors + +Post-login, if you'd like to redirect to a specific anchor on the page, you can use the following format to create the redirect URL: `https://docs.foo.com/page#jwt={SIGNED_JWT}&anchor={anchor}`. From 3f4dd2da5ceca9c4e8d428a15d1d496e6c8eeda0 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Thu, 5 Sep 2024 05:26:02 +0000 Subject: [PATCH 2/3] Documentation edits made through Mintlify web editor --- advanced/user-auth/jwt.mdx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/advanced/user-auth/jwt.mdx b/advanced/user-auth/jwt.mdx index 0e9cf291e..b6dc29a77 100644 --- a/advanced/user-auth/jwt.mdx +++ b/advanced/user-auth/jwt.mdx @@ -34,3 +34,8 @@ I then go to the Mintlify dashboard settings and enter `https://foo.com/docs-log ## Preserving Anchors Post-login, if you'd like to redirect to a specific anchor on the page, you can use the following format to create the redirect URL: `https://docs.foo.com/page#jwt={SIGNED_JWT}&anchor={anchor}`. + +Example: + +- Original: `https://docs.foo.com/quickstart#step-one` +- Redirect: `https://docs.foo.com/quickstart#jwt={SIGNED_JWT}&anchor=step-one` From d04f34937748a3cf70da0e025a0c03f4c9d21ec8 Mon Sep 17 00:00:00 2001 From: Mayank Shouche <43075711+mayankshouche@users.noreply.github.com> Date: Wed, 4 Sep 2024 22:26:27 -0700 Subject: [PATCH 3/3] Update casing Co-authored-by: Ronan McCarter <63772591+rpmccarter@users.noreply.github.com> --- advanced/user-auth/jwt.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/user-auth/jwt.mdx b/advanced/user-auth/jwt.mdx index b6dc29a77..bbe24d8c0 100644 --- a/advanced/user-auth/jwt.mdx +++ b/advanced/user-auth/jwt.mdx @@ -33,7 +33,7 @@ I then go to the Mintlify dashboard settings and enter `https://foo.com/docs-log ## Preserving Anchors -Post-login, if you'd like to redirect to a specific anchor on the page, you can use the following format to create the redirect URL: `https://docs.foo.com/page#jwt={SIGNED_JWT}&anchor={anchor}`. +Post-login, if you'd like to redirect to a specific anchor on the page, you can use the following format to create the redirect URL: `https://docs.foo.com/page#jwt={SIGNED_JWT}&anchor={ANCHOR}`. Example: