Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

diagrams fixed

Jonathan Summers-Muir3a12a535eacc
diff --git a/apps/www/_blog/2023-04-13-supabase-auth-sso-pkce.mdx b/apps/www/_blog/2023-04-13-supabase-auth-sso-pkce.mdx
index 5bd75d29020..8ca6237fa72 100644
--- a/apps/www/_blog/2023-04-13-supabase-auth-sso-pkce.mdx
+++ b/apps/www/_blog/2023-04-13-supabase-auth-sso-pkce.mdx
@@ -74,13 +74,17 @@ Many developers today are using Supabase to build mobile apps, and server-side r
When we [launched](https://news.ycombinator.com/item?id=24072051) Supabase Auth, our target was JAMstack developers. In these cases, the protocol used between the user’s application and Supabase Auth is known as the **\*\*\*\***\*\*\***\*\*\*\***[Implicit Grant Flow](https://www.rfc-editor.org/rfc/rfc6749#section-4.2):\*
-![dark mode](/images/blog/launch-week-7/day-4-supabase-auth-sso-pkce/supabase-auth-implicit-grant-flow--dark.svg)
-
-dark mode
-
-![light mode](/images/blog/launch-week-7/day-4-supabase-auth-sso-pkce/supabase-auth-implicit-grant-flow--light.svg)
-
-light mode
+<img
+ className="dark:hidden !m-0"
+ alt="diagram reference"
+ src="/images/blog/launch-week-7/day-4-supabase-auth-sso-pkce/supabase-auth-implicit-grant-flow--light.svg"
+/>
+
+<img
+ className="hidden dark:block !m-0"
+ alt="diagram reference"
+ src="/images/blog/launch-week-7/day-4-supabase-auth-sso-pkce/supabase-auth-implicit-grant-flow--dark.svg"
+/>
As developers built more complex apps, they encountered two problems with this authentication flow:
@@ -105,13 +109,17 @@ The PKCE flow introduces a _code verifier_ (a randomly generated secret) and a *
2. The client sends the _authorization code_ together with the _code verifier_ to obtain the user’s session.
3. Supabase Auth checks if the \***\*\*\*\*\*\*\***code verifier\***\*\*\*\*\*\*\*** matches the **\*\***\*\*\*\***\*\***code challenge**\*\***\*\*\*\***\*\*** sent earlier by computing the hash. This renders a malicious attacker’s attempt to intercept the authorization code useless, since they need to know the value of the _code verifier_ as well.
-![dark mode](/images/blog/launch-week-7/day-4-supabase-auth-sso-pkce/supabase-auth-pkce-flow--dark.svg)
-
-dark mode
-
-![light mode](/images/blog/launch-week-7/day-4-supabase-auth-sso-pkce/supabase-auth-pkce-flow--light.svg)
-
-light mode
+<img
+ className="dark:hidden !m-0"
+ alt="diagram reference"
+ src="/images/blog/launch-week-7/day-4-supabase-auth-sso-pkce/supabase-auth-pkce-flow--light.svg"
+/>
+
+<img
+ className="hidden dark:block !m-0"
+ alt="diagram reference"
+ src="/images/blog/launch-week-7/day-4-supabase-auth-sso-pkce/supabase-auth-pkce-flow--dark.svg"
+/>
### Migrating to PKCE on the client