Use server logout link in scheduler
This commit is contained in:
@@ -44,9 +44,9 @@ export function AppShell({
|
||||
<strong>{user.name}</strong>
|
||||
<span>{user.timeZone}</span>
|
||||
</div>
|
||||
<Link className="session-button" href="/logout">
|
||||
<a className="session-button" href="/api/scheduler/logout">
|
||||
Sign out
|
||||
</Link>
|
||||
</a>
|
||||
</div>
|
||||
</aside>
|
||||
<main className="main-surface">{children}</main>
|
||||
|
||||
@@ -1,14 +1,7 @@
|
||||
"use client";
|
||||
|
||||
export function AuthentikLogoutButton() {
|
||||
return (
|
||||
<button
|
||||
className="auth-primary"
|
||||
type="button"
|
||||
onClick={() => {
|
||||
window.location.assign("/api/scheduler/logout");
|
||||
}}>
|
||||
<a className="auth-primary" href="/api/scheduler/logout">
|
||||
Sign out
|
||||
</button>
|
||||
</a>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user