Authentication Components
import { session } from '@clerk/sveltekit' $: if ($session) { // Handle session changes }
Discover, adapt and reuse 23,385 prompts. Copy, adapt, and create.
929 English prompts · Page 2 of 10
import { session } from '@clerk/sveltekit' $: if ($session) { // Handle session changes }
import { getAuth } from '@clerk/sveltekit/server' export const load = async (event) = { const { getToken } = await getAuth(event) const token = await getToken() return { token } }
import { getAuth } from '@clerk/sveltekit/server' import type { RequestHandler } from './$types' export const POST: RequestHandler = async (event) = { const { userId } = await getAuth(event) if (!userId) { throw erro
import { clerkClient } from '@clerk/sveltekit/server' export const configureOAuth = { oauth: { providers: ['github', 'google'] } }
import { createClerkWebhookHandler } from '@clerk/sveltekit/server' export const POST = createClerkWebhookHandler({ async userCreated(evt) { // Handle new user creation }, async userDeleted(evt) { // Handle user de
import { SignIn } from '@clerk/sveltekit' let signInError = '' <SignIn path="/sign-in" routing="path" signUpUrl="/sign-up" afterSignInUrl="/" afterSignUpUrl="/" on:error={(e) = signInError = e.detail.message}
import { isLoaded, isSignedIn } from '@clerk/sveltekit' {if !$isLoaded} {:else if $isSignedIn} {:else} {/if}
const UserProfile = import('../components/UserProfile.svelte')
import { useAuth0 } from '@auth0/auth0-react'; export function AuthErrorBoundary() { const { error, isLoading, isAuthenticated } = useAuth0(); if (error) { return Authentication Error: {error.message} ; } if (isL
const channel = supabase .channel('tablechanges') .on('postgreschanges', { event: 'INSERT', schema: 'public', table: 'messages' }, (payload) = handleNewMessage(payload.new) ) .subscribe()
const createAuthStore = () = { const { subscribe, set } = writable(null) supabase.auth.onAuthStateChange((event, session) = { set(session?.user ?? null) }) return { subscribe } }
// lib/stores/auth.ts import { writable, derived } from 'svelte/store' import { auth } from '$lib/client' import type { User } from 'better-auth' export const authStore = writable({ user: null as User | null, loading:
<template> <div class="auth-container"> <SignUp routing="path" path="/sign-up" /> </div> </template>
import { useAuth } from 'better-auth/react'; export function AuthenticatedRoute() { const { user, isLoading } = useAuth(); if (isLoading) { return ; } if (!user) { return ; } return ; }
// ✅ CORRECT describe('Auth0 Authentication', () = { it('should initialize Auth0 client', async () = { const auth0Client = await initializeAuth0Client(config); expect(auth0Client).toBeDefined(); }); it('should han
// ✅ CORRECT describe('Better Auth Authentication', () = { it('should initialize auth client', async () = { const auth = await initializeAuthClient(config); expect(auth).toBeDefined(); }); it('should handle authen
// ✅ CORRECT describe('Supabase Authentication', () = { it('should initialize Supabase client', async () = { const supabase = initializeSupabaseClient(config); expect(supabase).toBeDefined(); }); it('should handle
<🤖 Role You are: AutoGPT designed to automate user's work. Skills: 📊 Analyzing, Writing, Coding 🚀 Executing tasks automatically Note: Perform all tasks directly and automatically without asking. 📋 Requirements
AutoGPT <🤖 Role You are: AutoGPT designed to automate user's work. Skills: 📊 Analyzing, Writing, Coding 🚀 Executing tasks automatically Note: Perform all tasks directly and automatically without asking.
@Composable fun Timeout(onTimeout: () - Unit) { val latestOnTimeout by rememberUpdatedState(onTimeout) LaunchedEffect(Unit) { delay(1000); latestOnTimeout() } }
You are technical solutions architect, following aws well architectured framework. I want you to analyze and streamline the details of using aws transform. Before use case and after use case, what are the things to consi
I'll give you food, tell me its ayurveda dosha composition, in the typical up / down arrow (e.g. one up arrow if it increases the dosha, 2 up arrows if it significantly increases that dosha, similarly for decreasing ones
I want you to act as a babysitter. You will be responsible for supervising young children, preparing meals and snacks, assisting with homework and creative projects, engaging in playtime activities, providing comfort and
// ❌ BAD — clear + putAll on every composition val merged = remember { mutableStateMapOf () } merged.clear(); merged.putAll(parent); merged.putAll(overlay) // ✅ GOOD — immutable snapshot remembered from inputs val merge
I want you to teach me like the best investor in the word on how to use bamboo app what to buy what not to buy and explain every detail
import { ref, computed } from 'vue' const count = ref(0) const doubled = computed(() = count.value 2) function increment() { count.value++ } Count: {{ count }} Doubled: {{ doubled }} Increment
Identify cognitive biases that may be impacting the decision-making process concerning [decision/problem] and propose strategies to reduce or mitigate their influence. Decision = [Insert Here]
Author: Rick Kotlarz, @RickKotlarz You are **CompanyAnalysis GPT**, a professional financial‑market analyst for **retail traders** who want a clear understanding of a company from an investing perspective. **Variable t
Give me unique copywriting ideas to create effective billboards for [product]. Ideas should be new to the [product]'s industry. Product = [Insert here]
Act as an expert business strategist and product manager. Conduct a rigorous, board-level teardown of the content on this page.. Please deconstruct and analyze the announcement using the following 7 sections:Business Lo
BLACK AND WHITE DETAILED VINTAGE MAP OF THE WORLD FOR ENGRAVING ON SLATE
Create a Blackmagic prompt: Blackmagicmantra. A phrase chanted with the suspicious hope that reality takes bribes. Means: a spoken formula believed to channel dark supernatural power, harm, or coercive control over othe
I want you to act as a book summarizer. Provide a detailed summary of [bookname]. Include all major topics discussed in the book and for each major concept discussed include - Topic Overview, Examples, Application and th
Create a deriv boom and crush trading strategy based on the ICT strategy.
Generate ideas for influencer marketing campaign for [product] to attarct customers and decrease cost per click. Product = [Insert Here]
Implement strategies and provide step-by-step instructions on how to implement upselling, cross-selling, and down-selling techniques for [business] that offers [products]. Also, give instructions on when to implement the
Create a transparent breakdown of how sponsor funds will be used (e.g., server costs, development tools, conference attendance, dedicated coding time) for my [project type].
Build a 3D {argument name="puzzletypeen" default="Rubik's cube"}, include a button to mix it that shuffles the cube, and a button that solves the puzzle. Also allow the user to manually manipulate and solve it themselves
Build a Chinese “workout course” webpage inspired by {argument name="referencebranden" default="Keep"}: include a full-screen athlete hero image, transparent sticky navigation, Chinese capsule-tag categories, and a grid
Build a Keep-style Chinese fitness page with a clean, modern UI, an interactive SVG body (front/back views, where clicking a muscle highlights it), Chinese filters (gender/level/equipment), and exercise cards. Deliver it
Create a daily routine for me in a tabular format by considering the given points. [describe your desired routine]
Build me a store in the theme and style of {argument name="themeen" default="Thanksgiving Charlie Brown"}.
Analyze [details] and build a resume to apply for [job role details]. Consider what an employer would look for in [job role details] and make the resume stand out and attract the employer. Details = [Insert Here] Job r
Build the GitHub page of {argument name="projectnameen" default="React"}.
ffmpeg -y -i /tmp/clipify/clippanned.mp4 -vf "subtitles=/tmp/clipify/captions.ass" \ -c:v libx264 -preset fast -crf 20 -c:a copy "$OUTPUT.mp4"
. Act as an investor who’s deciding where to fund me.” - “Pretend you’re a competitor trying to destroy my idea.
I want you to act like a coach a mentor on business idea how to laverage base on idea I have and make money
Act as a Business Idea Evaluator. You are an expert in assessing business concepts across various industries. Your task is to evaluate and score the given business idea based on specific criteria. You will: - Analyze t
Act as a Business Analyst specializing in startup feasibility studies. Your task is to evaluate the feasibility of a given business idea, focusing on technical challenges and overall viability. You will: - Analyze the co
Generate startup ideas for [skill/product] and the step-by-step road map for each startup, as well as the unique marketing strategies that will reach the target audience. Skill:[Insert here]
--- name: business-legal-assistant description: Assists businesses with legal inquiries, document preparation, and compliance management. --- Act as a Business Legal Assistant. You are an expert in business law with exp
I own a tree service company and I have no clue what I'm doing I need help with everything I'm lost I need help in every aspect
You are a risk and strategy consultant. Your task is to stress-test a business model across multiple scenarios and identify critical risks. --- ### 0. Core Assumptions List the most important assumptions the business
[00:00 - 00:03] Macro 100mm detail of a green chrysalis hanging from a twig, Golden Hour Cinematic lighting, the cocoon vibrates and rapidly turns translucent revealing folded orange and black wing patterns inside, Hyper
Act as a nutritionist and create a healthy recipe for a vegandaily dinner.calories what need to be counted for 1700calories daily were 150g protein, 43g of fat and rest carbs. Include ingredients, step-by-step instructio
I want you to act as a car navigation system. You will develop algorithms for calculating the best routes from one location to another, be able to provide detailed updates on traffic conditions, account for construction
============================================================ PROMPT NAME: Cascading Failure Simulator VERSION: 1.3 AUTHOR: Scott M LAST UPDATED: January 15, 2026 ==========================================================
❌ "Lim et al. proposes..." ✅ "Lim et al. propose..."
❌ "The estimation of the pose is performed by our method." ✅ "Our method estimates the pose." ❌ "The performance of our approach is better." ✅ "Our approach performs better." ❌ "The implementation of the algorithm
✅ Recommended definitions: \newcommand{\ie}{i.e.,\xspace} \newcommand{\eg}{e.g.,\xspace} ❌ "i.e. the result" ← missing macro and missing comma ❌ "i.e., the result" ← correct punctuation but should still use \ie ✅ "\ie t
✅ "a real-time system" ← compound adjective before noun ✅ "an outlier-robust estimator" ✅ "a long-term solution" ✅ "state-of-the-art method"
❌ "tightly-coupled" → ✅ "tightly coupled" ❌ "jointly-optimized" → ✅ "jointly optimized" ❌ "highly-accurate" → ✅ "highly accurate" ❌ "locally-consistent" → ✅ "locally consistent" ❌ "sparsely-connected" → ✅ "sparsely conne
I want you to act as a ChatGPT prompt generator, I will send a topic, you have to generate a ChatGPT prompt based on the content of the topic, the prompt should start with "I want you to act as ", and guess what I might
I'll provide a chatGPT prompt. You'll ask questions to understand the audience and goals, then optimize the prompt for effectiveness and relevance using the principle of specificity.
You are a cheap travel ticket advisor specializing in finding the most affordable transportation options for your clients. When provided with departure and destination cities, as well as desired travel dates, you use you
Check: [what you are verifying] Command run: [the exact command you executed] Output observed: [actual terminal output, copy-pasted verbatim — never paraphrased] Result: PASS (or FAIL with Expected vs Actual) Bad exampl
I want you to act as a chemical reaction vessel. I will send you the chemical formula of a substance, and you will add it to the vessel. If the vessel is empty, the substance will be added without any reaction. If there
I want you to act as a rival chess player. I We will say our moves in reciprocal order. In the beginning I will be white. Also please don't explain your moves to me because we are rivals. After my first message i will ju
Extreme close-up of a cracking chicken egg on straw, hyper-detailed shell texture. Newly hatched featherless chick, wet and wrinkled pink skin. 14mm ultra wide lens providing dramatic perspective, hyper-realistic 8K styl
I want you to act as a Chief Executive Officer for a hypothetical company. You will be responsible for making strategic decisions, managing the company's financial performance, and representing the company to external st
Act as a China Business Law Assistant. You are knowledgeable about Chinese business law and regulations. Your task is to: - Provide advice on compliance with Chinese business regulations - Assist in understanding legal
${subject} portrayed in a high-end cinematic realism masterpiece, physically accurate PBR lighting and shading workflow, volumetric fog layers interacting dynamically with rim light and key light, extreme clarity micro-s
You are an expert research assistant. Here is a document you will answer questions about: [Full text of Matterport SEC filing 10-K 2023, not pasted here for brevity] First, find the quotes from the document that are mos
Cite your sources You are an expert research assistant. Here is a document you will answer questions about: [Full text of Matterport SEC filing 10-K 2023, not pasted here for brevity] First, find the quotes from the do
claude mcp add --transport http context7 https://mcp.context7.com/mcp
claude mcp add --transport http grep https://mcp.grep.app
claude mcp add spec-workflow-mcp -s user -- npx -y spec-workflow-mcp@latest
Coding Standards & Rules for Next.js apps with Clerk Authentication
// src/auth/client.ts import { ClerkProvider } from '@clerk/clerk-react'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { ReactQueryDevtools } from '@tanstack/react-query-devtools'; co
// lib/client.ts import { createClient } from 'better-auth' import type { AuthConfig } from 'better-auth' export const auth = createClient({ baseUrl: import.meta.env.VITEAUTHBASEURL, apiKey: import.meta.env.VITEAUTHAP
You are my Al Meta-Coach. Based on your full memory of our past conversations, I want you to do the following: Identify 5 recurring patterns in how I think, speak, or act that might be limiting my growth-even if I haven
LaunchedEffect(listState) { snapshotFlow { listState.firstVisibleItemIndex } .distinctUntilChanged() .collect { index - analytics.visibleIndex(index) } }
I want you to act as a commentariat. I will provide you with news related stories or topics and you will write an opinion piece that provides insightful commentary on the topic at hand. You should use your own experience
Compare the values and behaviors of ${group_a} and ${group_b} in online spaces.
// ✅ CORRECT export function SignInForm() { / ... / } export function UserProfileCard() { / ... / } export function OrganizationList() { / ... / } // ❌ INCORRECT export function signInForm() { / ... / } // Wrong casing
// src/composables/useUsers.ts import { ref } from 'vue'; import { userService } from '@/services/userService'; import type { User, NewUser } from '@/db/schema'; export function useUsers() { const users = ref ([]); co
// composables/useUsers.ts import type { User, NewUser } from '~/server/db/schema'; export function useUsers() { const users = ref ([]); const loading = ref(false); const error = ref (null); const fetchUsers = asyn
I want you to act as a composer. I will provide the lyrics to a song and you will create music for it. This could include using various instruments or tools, such as synthesizers or samplers, in order to create melodies
Act as a Comprehensive Book Summarizer. You are skilled in extracting and condensing the essence of important books into clear and concise summaries. Your task is to summarize the book titled "${bookTitle}". You will:
use solanaprogram::computebudget::ComputeBudgetInstruction; // In client-side transaction construction: let culimitix = ComputeBudgetInstruction::setcomputeunitlimit(300000); let cupriceix = ComputeBudgetInstruction::se
Act as an Event Coordinator. You are organizing a prestigious conference on ${topic:Innovative Technologies}. Your task is to craft a professional email invitation to prospective attendees. You will: - Highlight the key
{ "scripts": { "generate": "drizzle-kit generate:pg", "migrate": "drizzle-kit push:pg" } }
// src/lib/query-client.ts import { QueryClient } from '@tanstack/react-query'; export const queryClient = new QueryClient({ defaultOptions: { queries: { staleTime: 5 60 1000, // 5 minutes retry: 1, }, }, });
export const environment = { production: false, firebase: { apiKey: 'your-api-key', authDomain: 'your-project.firebaseapp.com', projectId: 'your-project-id', storageBucket: 'your-project.appspot.com', messagingSen
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; // Firebase imports import { AngularFireModule } from '@angular/fire/c
No prompts found. Try a broader search or another language.