Files
supabase/apps/studio/components/interfaces/Account/VerificationInterstitialLogo.tsx
Danny White 797a43c7d0 feat(studio): add a shared shield badge to identity verification (#53145)
## Problem

The authenticator and recovery-code verification screens use the plain
Supabase logo, while other security interstitials use a badge to show
the purpose of the screen.

## Solution

Add the same shield with a cut-out check to **Verify your identity** and
**Use a recovery code**, using `InterstitialLogoBadge`.

| After |
| --- |
| <img width="942" height="456" alt="CleanShot 2026-11-09 at 18 02
09@2x"
src="https://github.com/user-attachments/assets/6e19eb79-7b42-4f95-967d-479ca38cc347"
/> |
| _Note the grey “Shield with cut-out check” for verification
interstitials like this one._ |
| <img width="1016" height="454" alt="CleanShot 2026-11-09 at 10 35
46@2x"
src="https://github.com/user-attachments/assets/dca51146-c7ee-44fd-a318-ef7101f1c77f"
/> |
| _No visual changes here, just showing the family of badges._ |

## Review instructions

1. On [Security on this
preview](https://studio-staging-git-dnywh-verification-shield-badge-supabase.vercel.app/dashboard/account/security),
follow [#52352’s breakpoint
steps](https://github.com/supabase/supabase/pull/52352#review-instructions)
with a disposable MFA account that has recovery codes. Check for the
shield in the top-right corner of the Supabase logo.
2. Choose **Use recovery code instead**. Check that the same badge
appears on the recovery-code screen.
2026-11-10 16:15:26 +11:00

18 lines
610 B
TypeScript

import { InterstitialLogoBadge, SupabaseLogo } from '@/components/layouts/InterstitialLayout'
export const VerificationInterstitialLogo = () => (
<SupabaseLogo
badge={
<InterstitialLogoBadge>
<svg viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
<path
fillRule="evenodd"
clipRule="evenodd"
d="M12 1.5 3 5v6c0 5.6 3.6 9.6 9 11.5 5.4-1.9 9-5.9 9-11.5V5L12 1.5Zm5.2 7.3a1 1 0 0 0-1.4 0L10.5 14l-2.3-2.2a1 1 0 0 0-1.4 1.4l3 3a1 1 0 0 0 1.4 0l6-6a1 1 0 0 0 0-1.4Z"
/>
</svg>
</InterstitialLogoBadge>
}
/>
)