Install any skill in seconds. Free to start, no credit card required.
Get Started Free →aiskillstore/authentication-logic
Guide to using Better Auth for client and server-side authentication.
Passed 21 of 22 test cases with the skill, and 9 of 22 without it.
and 15 more in the full report
12 fixed9 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 12 test cases the skill fixed. Same model, same prompt, with and without the skill.
We want to enable GitHub OAuth sign-in on our login page in a client component. I'm tempted to use `signIn('github')`. Write the client function call that handles social sign-in with GitHub and redirects to '/dashboard'.
| Checked | Without skill | With skill |
|---|---|---|
| Calls authClient.signIn.social | Missed | Passed |
| Passes provider property set to github | Missed | Passed |
| Passes callbackURL property set to /dashboard | Missed | Passed |
The instructions your model reads when the skill loads.
We use Better Auth (better-auth) for identifying users.
lib/auth-client.ts exports authClient.lib/auth.ts exports auth.Use authClient for signing in, signing out, and checking session state in Client Components.
import { authClient } from "@/lib/auth-client";
// Sign In
await authClient.signIn.email({
email,
password,
});
// Social Sign In
await authClient.signIn.social({
provider: "google",
callbackURL: "/onboarding",
});
// Sign Out
await authClient.signOut();
Use auth.api.getSession for protecting API routes or Server Actions.
import { auth } from "@/lib/auth";
import { headers } from "next/headers";
const session = await auth.api.getSession({
headers: await headers()
test cases passed, vs 9 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.