Files
supabase/apps/ui-library/registry/default/blocks/social-auth-nextjs/components/logout-button.tsx
Danny WhiteandIvan Vasilov c1df3711a6 fix(ui-library): standardise auth labels in starter blocks (#49880)
## What kind of change does this PR introduce?

Copy fix in ui-library and vue starter blocks.

## What is the current behavior?

Auth starter templates use **Login**, **Logout**, and **Logging in...**
in button labels and form copy.

## What is the new behavior?

User-facing labels use **Sign in**, **Sign out**, and **Signing in...**,
matching the platform standard
([#49874](https://github.com/supabase/supabase/pull/49874),
[#49877](https://github.com/supabase/supabase/pull/49877)).

File names, component names, and routes (`/login`, `/logout`) are
unchanged.

## To test

Open ui-library auth block previews and confirm sign-in and sign-out
button labels.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **Style**
- Updated authentication interface wording from “Login” to “Sign in” and
“Logout” to “Sign out” across password-based and social authentication
flows.
- Updated loading-state text from “Logging in...” to “Signing in...” for
sign-in buttons.
- Refreshed related descriptions, form titles, and account links while
preserving destinations, styling, and authentication behavior.
- Applied consistent wording across supported authentication pages and
frameworks.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2026-09-04 06:55:39 +00:00

19 lines
492 B
TypeScript

'use client'
import { useRouter } from 'next/navigation'
import { createClient } from '@/registry/default/clients/nextjs/lib/supabase/client'
import { Button } from '@/registry/default/components/ui/button'
export function LogoutButton() {
const router = useRouter()
const logout = async () => {
const supabase = createClient()
await supabase.auth.signOut()
router.push('/example/password-based-auth/auth/login')
}
return <Button onClick={logout}>Sign out</Button>
}