Properties for the SignOut component.
An anchor element that links to the sign-out endpoint.
Sign-out component works on both the server and the client in pages router and app router.
import { SignOut } from "@monocloud/auth-nextjs/components";
export default function Home() {
return <SignOut>Sign Out</SignOut>;
}
You can customize the request by passing in props. See SignOutProps.
Note⚠️: You need to set the env MONOCLOUD_AUTH_ALLOW_QUERY_PARAM_OVERRIDES=true or allowQueryParamOverrides should be true in the client initialization for props to work
import { SignOut } from "@monocloud/auth-nextjs/components";
export default function Home() {
return <SignOut federated={true}>Sign Out</SignOut>;
}
A component that renders an anchor tag configured to initiate the sign-out flow.