local-auth

local-auth is a skill for Claude Code from launch52-ai/flutter-template. It costs 46 tokens per session (1,575 once invoked), scanned A, original, MIT.

A Flutter setup for unlocking an app or confirming sensitive actions with the device’s biometrics or PIN, pattern, or password. It can also cover app timeouts, biometric changes, an optional app PIN, and a lock screen.

In plain words
What is it for?
Use it for Face ID, Touch ID, fingerprint or device-credential unlocks, re-authentication after backgrounding, and confirmation before payments, deletion, or viewing personal information.
Why use it?
It adds a way to protect private app content or risky actions using security already configured on the device.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

Good fit Use it for Face ID, Touch ID, fingerprint or device-credential unlocks, re-authentication after backgrounding, and confirmation before payments, deletion, or viewing personal information.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/launch52-ai/flutter-template/local-auth
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.

Any agent
npx skills add launch52-ai/flutter-template --skill local-auth
Clone the repo
git clone --depth 1 https://github.com/launch52-ai/flutter-template

Made for: Claude Code.

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 local-auth

README.md
[![agentmods](https://agentmods.dev/badge/skills/launch52-ai/flutter-template/local-auth/github.svg)](https://agentmods.dev/skills/launch52-ai/flutter-template/local-auth)
Your own site
<a href="https://agentmods.dev/skills/launch52-ai/flutter-template/local-auth"><img src="https://agentmods.dev/badge/skills/launch52-ai/flutter-template/local-auth/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for local-auth

Your own site · 80×15
<a href="https://agentmods.dev/skills/launch52-ai/flutter-template/local-auth"><img src="https://agentmods.dev/badge/skills/launch52-ai/flutter-template/local-auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,575 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00046 $0.01575
Opus 5.5 $0.00018 $0.00630
Sonnet 5.5 $0.00009 $0.00315
Haiku 4.5 $0.00005 $0.00158

Measured 1mo ago against content hash 866d1a347259, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

local-auth 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 1mo 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.

.claude/skills/local-auth/SKILL.md · 199 lines

How it starts

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

Local Auth - Device Authentication

Local device authentication using biometrics (Face ID, Touch ID, fingerprint) and device credentials (PIN, pattern, password). Configurable security levels from basic to banking-grade.

When to Use This Skill

  • Adding biometric/device unlock to an app
  • Implementing app lock after background timeout
  • Securing sensitive actions (payments, delete, view PII)
  • User asks "biometric", "face id", "fingerprint", "app lock", "local auth"

When NOT to Use This Skill

  • Remote authentication - Use /auth, /social-login, /phone-auth
  • Session tokens - Handled by /auth and /data
  • Secure storage - Already in /core (flutter_secure_storage)

Questions to Ask

Before generating code, ask these questions:

  1. Use case: App unlock after timeout OR sensitive action confirmation OR both?
  2. Security level: Trust device (simple) OR detect biometric changes (banking-grade)?
  3. Lock screen: Generate lock screen UI OR service only?
  4. Settings toggle: Generate enable/disable toggle widget?
  5. App PIN: Include app-level PIN for devices without lock screen?
  6. Timeout: How long in background before requiring re-auth? (0 = immediate)
  7. Failure behavior: Force full re-login OR let device handle lockout?

Quick Reference

Dependencies

dependencies:
  local_auth: ^2.3.0

Security Levels

Level Biometric Change Use Case
Simple Trust any enrolled biometric Social apps, low-risk
Banking Detect changes, require re-login Finance, health, PII

Authentication Options

Option iOS Android
Face ID / Face Unlock Yes Yes
Touch ID / Fingerprint Yes Yes
Passcode Yes Yes
PIN / Pattern N/A Yes

Core Components

Component Purpose
LocalAuthService Wraps local_auth, handles platform checks
LocalAuthNotifier State management, timeout tracking
LocalAuthSettings User preferences (enabled, timeout)
LockScreen Optional full-screen auth prompt
LocalAuthToggle Optional settings widget
AppPinService Optional app-level PIN (no device lock)

Read the full file on GitHub · 199 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. 1mo ago First seen · 199 lines · 46 tokens per session scan A 866d1a347259

Subscribe to this mod's changes

local-auth is a skill published in the GitHub repository launch52-ai/flutter-template (2 stars, last pushed 7mo ago), licensed MIT. It adds 46 tokens to every session and 1,575 once invoked, about $0.0002 per session on Opus 5.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-08-31.

Related

Other skills, from other repositories

merge-seed

Merge upstream React Starter Kit updates (the seed remote) into main, preserving this project's identity, scope, and behavior. Use when asked to sync, pull, or merge the seed / starter kit / upstream template.

kriasoft/react-starter-kit · 49 tokens

firebase-messaging

Use when setting up Firebase Cloud Messaging, managing permissions and tokens, handling background/foreground notification taps, or dispatching messages server-side (HTTP v1).

evanca/flutter-ai-rules · 35 tokens

generate-images-with-firebase-ai

Use when generating or editing images from Flutter/Dart with Firebase AI Logic and a Gemini image model (Nano Banana), making the first call work, choosing Gemini Developer API vs Vertex AI, hitting quota, billing or App Check failures, getting empty or image-only responses, sending a user photo as input, controlling…

evanca/flutter-ai-rules · 84 tokens

firebase-database

Use when syncing real-time data, structuring JSON trees, reading/writing, creating listeners, enabling offline persistence, managing presence, sharding, or writing security rules.

evanca/flutter-ai-rules · 38 tokens

flutter-app-architecture

Use when scaffolding a project, refactoring into layers, creating view models/repositories, configuring dependency injection, or implementing unidirectional data flow (MVVM).

evanca/flutter-ai-rules · 38 tokens

riverpod

Use when setting up providers, combining requests, managing state disposal, passing arguments, performing side effects, or testing providers (Riverpod).

evanca/flutter-ai-rules · 30 tokens