mirror of
https://github.com/michivonah/rss-reader.git
synced 2025-12-22 20:46:28 +01:00
add next auth & login with github
This commit is contained in:
parent
78afa6be22
commit
9a9110e58c
10 changed files with 226 additions and 22 deletions
18
src/components/login/signout-button.tsx
Normal file
18
src/components/login/signout-button.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { signOut } from "@/auth";
|
||||
import { LogOut } from "lucide-react";
|
||||
|
||||
export function SignOut() {
|
||||
return (
|
||||
<form
|
||||
action={async () => {
|
||||
"use server";
|
||||
await signOut();
|
||||
}}
|
||||
>
|
||||
<button className="flex flex-row items-center gap-2 cursor-pointer w-full" type="submit">
|
||||
<LogOut size={16} />
|
||||
<span>Log out</span>
|
||||
</button>
|
||||
</form>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue