mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 16:46:00 +00:00
init: nuxt adapter
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import type { User } from "bknd";
|
||||
|
||||
export const useUser = () => {
|
||||
const getUser = () => $fetch("/api/auth/me") as Promise<{ user: User }>;
|
||||
return { getUser };
|
||||
};
|
||||
Reference in New Issue
Block a user