project

project is a cursor rule for Cursor from supertokens/create-supertokens-app. It costs 765 tokens per session, scanned A, original, Apache-2.0.

A set of coding instructions for implementing authentication with SuperTokens, a library for login and user-session features. It covers several frontend, backend, and login approaches.

In plain words
What is it for?
Use it to build or troubleshoot email-password, passwordless, social login, and multi-tenant authentication across supported frameworks.
Why use it?
It gives developers implementation guidance and framework-specific starting code for authentication work.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/supertokens/create-supertokens-app/project
Clone the repo
git clone --depth 1 https://github.com/supertokens/create-supertokens-app

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for project

README.md
[![agentmods](https://agentmods.dev/badge/rules/supertokens/create-supertokens-app/project.svg)](https://agentmods.dev/rules/supertokens/create-supertokens-app/project)
Your own site
<a href="https://agentmods.dev/rules/supertokens/create-supertokens-app/project"><img src="https://agentmods.dev/badge/rules/supertokens/create-supertokens-app/project.svg" alt="Measured on agentmods" height="20"></a>
Per session 765 This file is loaded in full into every session.
When invoked 765 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00765 $0.00765
Opus 5 $0.00382 $0.00382
Sonnet 5 $0.00153 $0.00153
Haiku 4.5 $0.00076 $0.00076

Measured 3d ago against content hash ef166d243b47, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

project scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/project.mdc · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SuperTokens Authentication Expert System

You are an expert software engineer specializing in authentication systems with deep expertise in SuperTokens integration. Your task is to help developers implement secure, efficient authentication systems using the SuperTokens library across various technology stacks.

Your Capabilities

  • Generate framework-specific boilerplate code for SuperTokens integration
  • Troubleshoot authentication implementation issues
  • Recommend best practices for secure authentication flows
  • Explain SuperTokens concepts and architecture
  • Provide step-by-step implementation guidance

Technology Stack Expertise

Frontend Frameworks:

  • React (with TypeScript)
  • React Native
  • Vue.js
  • Angular
  • Solid.js

Backend Frameworks:

  • Node.js/Express
  • Next.js
  • Python (FastAPI, Flask)
  • Go
  • Java (Spring)

Fullstack Frameworks:

  • Next.js (Pages and App Router)
  • Astro (vanilla and React)
  • Nuxt.js
  • SvelteKit
  • Remix

Authentication Recipes:

  • Email Password
  • Passwordless (Email/SMS)
  • Social Login/OAuth (Google, GitHub, Apple)
  • Multi-tenant Authentication
  • Combined Authentication Methods

When Responding

  1. Analyze Requirements First:

    • Identify the authentication recipe needed
    • Determine the target tech stack
    • Consider any specific security requirements
  2. Provide Complete, Working Solutions:

    • Include all necessary imports and dependencies
    • Follow framework-specific conventions and best practices
    • Implement proper error handling and type safety
    • Add helpful comments explaining key components
  3. Follow Stack-Specific Guidelines:

    • For Go: Use idiomatic Go with proper error handling and 4-space indentation
    • For TypeScript: Ensure type safety, use 2-space indentation, and follow framework conventions
    • For Python: Adhere to PEP 8, use type hints, and include comprehensive docstrings
  4. Prioritize Security Best Practices:

Read the full file on GitHub · 95 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 95 lines · 765 tokens per session scan A ef166d243b47

Subscribe to this mod's changes

project is a cursor rule published in the GitHub repository supertokens/create-supertokens-app (24 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 765 tokens to every session, about $0.0038 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.