N-FIN-79: use sign out url constant

This commit is contained in:
Markus Thielker 2024-04-04 00:49:21 +02:00
parent 12c689d1d6
commit ba71cbef0e
No known key found for this signature in database

View file

@ -8,6 +8,7 @@ import { ServerActionTrigger } from '@/components/form/serverActionTrigger';
import accountDelete from '@/lib/actions/accountDelete'; import accountDelete from '@/lib/actions/accountDelete';
import { Button } from '@/components/ui/button'; import { Button } from '@/components/ui/button';
import { getSession, Session } from '@auth0/nextjs-auth0'; import { getSession, Session } from '@auth0/nextjs-auth0';
import { URL_SIGN_OUT } from '@/lib/constants';
export default async function AccountPage() { export default async function AccountPage() {
@ -86,7 +87,7 @@ export default async function AccountPage() {
variant="outline"> variant="outline">
Delete Account Delete Account
</ServerActionTrigger> </ServerActionTrigger>
<a href="/api/auth/logout"> <a href={URL_SIGN_OUT}>
<Button className="w-full"> <Button className="w-full">
Sign Out Sign Out
</Button> </Button>