Bot releases are hidden (Show)
Published by wobsoriano about 2 months ago
6c77ccb: Introduce Nuxt module
Usage:
export default defineNuxtConfig({
modules: ["vue-clerk/nuxt"],
});
<script setup>
const { data: user } = await useCurrentUser()
</script>
<template>
<SignedIn>
<h1>Hello, {{ user?.fullName }}</h1>
<UserButton />
</SignedIn>
<SignedOut>
<SignInButton mode="modal" />
</SignedOut>
</template>
// server/api/me.ts
import { clerkClient, getAuth } from '#clerk'
export default eventHandler((event) => {
const { userId } = getAuth(event);
if (!userId) {
setResponseStatus(event, 403);
return;
}
return clerkClient(event).users.getUser(userId);
});
Published by wobsoriano 4 months ago
Published by wobsoriano 4 months ago
Published by wobsoriano 4 months ago
Published by wobsoriano 4 months ago
Published by wobsoriano 5 months ago
Published by wobsoriano 5 months ago
Published by wobsoriano 5 months ago
Published by wobsoriano 5 months ago
Published by wobsoriano 5 months ago
Published by wobsoriano 6 months ago
Published by wobsoriano 8 months ago
Published by wobsoriano 8 months ago
Published by wobsoriano 9 months ago
Published by wobsoriano 9 months ago
Published by wobsoriano 12 months ago
Published by wobsoriano about 1 year ago
Published by wobsoriano about 1 year ago
Published by wobsoriano about 1 year ago