local-auth

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 CodeCodex

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 skills/launch52-ai/flutter-template/local-auth
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, Codex.

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. 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.00046 $0.01575
Opus 5 $0.00023 $0.00788
Sonnet 5 $0.00009 $0.00315
Haiku 4.5 $0.00005 $0.00158

Measured 2d ago against content hash 866d1a347259, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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. 2d 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 6mo ago), licensed MIT. It adds 46 tokens to every session and 1,575 once invoked, about $0.0002 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-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

at_client_skills-sdk

Use this skill when a developer is building a Dart or Flutter app that depends on atclient or atclientflutter from pub.dev, stores or shares data via the Atsign Protocol, needs onboarding (CRAM new-atsign, atKeys file, keychain, APKAM) or APKAM enrollment, or asks about AtCollection , CItem , Query , sub-collections…

atsign-foundation/at_client_sdk · 232 tokens

update-store

ストア情報の更新自動化 — スクリーンショット撮影(シミュレーター × モック画面 × Marionette MCP)とメタデータテキスト更新。ストア更新、スクショ更新、App Store / Google Play のメタデータ更新、リリースノート作成の際に使用すること。.

K9i-0/ccpocket · 80 tokens

mobile-automation

MCP (dart-mcp + Marionette) を使ったFlutterアプリのE2E自動化・UI検証ガイド。シミュレーターでのUI動作確認、モックプレビュー検証、Bridge経由のE2Eテスト、スクリーンショット撮影など、アプリの動作検証が必要なときに使う。「動作確認して」「UIを検証して」「E2Eテスト」「シミュレーターで確認」「モックで確認」と言われたときや、UI変更後の検証フェーズで使用すること。.

K9i-0/ccpocket · 138 tokens

submit-store-review

App Store Connect・Google Playの現在の公開版をAPIで調べ、既存の最新安定ビルドとの差分から4言語のリリースノートを作成し、CLI/APIで審査へ提出・再提出する。新しいビルドを作るrelease-appとは分離し、「最新を審査提出して」「ストア審査へ提出して」「App Reviewに出して」「Google Playの審査を進めて」「却下対応して再提出して」と依頼されたときに使用する。.

K9i-0/ccpocket · 126 tokens

flutter-ui-design

SSOT (Single Source of Truth) + UDF (Unidirectional Data Flow) に基づく設計。.

K9i-0/ccpocket · 36 tokens