BETTER-AUTH. UI
Components

<SignOut />

A sign-out component that automatically signs the user out when mounted and displays a loading indicator.

Usage

import { SignOut } from "@/components/auth/sign-out"

function RouteComponent() {
  return (
    <div className="flex flex-col p-4 md:p-6 my-auto items-center">
      <SignOut />
    </div>
  )
}
import { SignOut } from "@better-auth-ui/shadcn"

function RouteComponent() {
  return (
    <div className="flex flex-col p-4 md:p-6 my-auto items-center">
      <SignOut />
    </div>
  )
}

Installation

npx shadcn@latest add https://better-auth-ui.com/r/sign-out.json

Props

Prop

Type

Last updated on

On this page