NORY-36: add logout button to /unauthorised

This commit is contained in:
Markus Thielker 2024-12-15 16:37:33 +01:00
parent 08e65e0ec3
commit faa3485ca8
No known key found for this signature in database

View file

@ -1,11 +1,20 @@
import { ErrorDisplay } from '@/components/error'; 'use client';
export default async function UnauthorizedPage() { import { ErrorDisplay } from '@/components/error';
import { Button } from '@/components/ui/button';
import { LogoutLink } from '@/ory';
import { LogOut } from 'lucide-react';
export default function UnauthorizedPage() {
return ( return (
<div className="bg-background min-h-screen p-16"> <div className="bg-background min-h-screen p-16">
<ErrorDisplay <ErrorDisplay
title="Unauthorised" title="Unauthorised"
message="You are unauthorised to access this application!"/> message="You are unauthorised to access this application!"/>
<Button className="mt-8 space-x-2" onClick={LogoutLink()}>
<LogOut className="h-4 w-4"/>
<span>Logout</span>
</Button>
</div> </div>
); );
} }