phone-number-verification
БесплатноБез исполняемых скриптовНе проверенVerify user phone numbers without SMS in an Android app using the Credential Manager DigitalCredential API, OpenID4VP, and carrier-issued TS.43 tokens. Use…
от android★ 10 827 звёзд на GitHubОб этом скилле
Implement phishing-resistant, SMS-free phone number verification in an Android
app using Credential Manager's DigitalCredential API to request an encrypted,
carrier-issued TS.43 token over OpenID4VP and exchange it with an aggregator
or mobile carrier backend for the verified phone number. When reviewing TS.43
architecture and security standards, consult
About verifying phone numbers. When implementing client and server code
snippets, consult Implement phone number verification. When verifying
general mso_mdoc or dc+sd-jwt wallet credentials, suggest the
credential-verifier skill.
Prerequisites and setup
- Android version compatibility: Runtime support for the Phone Number Verification API requires Android 10 (API level 29) or higher (while the
androidx.credentialslibrary compiles withminSdk23 or higher). - Aggregator account: Requires an account with a mobile carrier or cellular aggregator endpoint that supplies DCQL parameters and exchanges
TS.43tokens. - Manifest permission for carrier precheck: Declare
<uses-permission android:name="android.permission.READ_PHONE_STATE" />inapp/src/main/AndroidManifest.xmlto queryTelephonyManager.getSimCarrierId()before invoking Credential Manager. - Build config permission: Ask for user confirmation before modifying
settings.gradle.kts, rootbuild.gradle.kts, orgradle/libs.versions.toml, unless already requested by the user or running non-interactively. - Dependencies and package mapping: Add the Credential Manager artifacts to the app module build script (
app/build.gradle.ktsorapp/build.gradle; when checking the latest version declarations, consult Implement phone number verification):
| Artifact | Key classes, constructor signatures, and package |
|---|---|
androidx.credentials:credentials:1.7.0-alpha03 (or 1.6.0+) |
CredentialManager, GetCredentialRequest, GetCredentialResponse, GetDigitalCredentialOption(requestJson: String), DigitalCredential, and ExperimentalDigitalCredentialApi in androidx.credentials; GetCredentialException, GetCredentialCancellationException, GetCredentialInterruptedException, GetCredentialUnsupportedException, and NoCredentialException in androidx.credentials.exceptions |
androidx.credentials:credentials-play-services-auth:1.7.0-alpha03 (or 1.6.0+) |
Play services provider integration for Credential Manager |
Expected inputs and file scope
- Required inputs: Whether the app is retrieving the device phone number (
number-verification/device-phone-number/ts43) or verifying an existing user-entered phone number (number-verification/verify/ts43), whether dual SIM (subscription_hint) or biometric/screen-lock verification (user_verification_hint) is needed, and the fallback verification flow when the carrier or device is unsupported. - Files to modify:
app/build.gradle.kts,app/src/main/AndroidManifest.xml(forREAD_PHONE_STATE), phone number verification client or repository classes, ViewModels, and UI screens orActivityclasses (such asMainActivity.kt). - Forbidden substitutions: Don't use
TelephonyManager.getLine1Number(),READ_PHONE_NUMBERS,SmsRetriever, or SMS OTP APIs as a substitute for the Credential ManagerDigitalCredentialTS.43 verification flow (only useTelephonyManager.getSimCarrierId()for the carrier support precheck, and fall back to SMS only when the carrier or device is unsupported).
Codebase exploration
Search the Android project before modifying files:
- Validate baseline build and inspect configuration: Run
./gradlew assembleDebugto confirm the project compiles before making changes, checkapp/build.gradle.ktsandgradle/libs.versions.tomlforminSdkandandroidx.credentialsdependencies, and checkapp/src/main/AndroidManifest.xmlforREAD_PHONE_STATE. - Locate UI entry points: Identify the
Activityor Compose screen (such asMainActivity.ktorTasksScreen.kt) where phone number verification is triggered so you pass anActivityContexttocredentialManager.getCredential().
Critical implementation mandates
Follow the end-to-end steps and code snippets in Implement phone number verification and apply these rules:
- Opt in to experimental APIs: Annotate classes or functions referencing
GetDigitalCredentialOptionandDigitalCredentialwith@OptIn(androidx.credentials.ExperimentalDigitalCredentialApi::class)(omitted from the Kotlin snippet in [Implement phone number verification](references/android/identity/digital-credentials/implement-phone-number-ver
Установить phone-number-verification в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл phone-number-verification?
Verify user phone numbers without SMS in an Android app using the Credential Manager DigitalCredential API, OpenID4VP, and carrier-issued TS.43 tokens. Use this skill whenever the user asks to verify phone numbers without SMS, implement carrier-based phone number verification in an Android project, perform a TelephonyManager.getSimCarrierId carrier precheck, or request a TS.43 Digital Credential using CredentialManager, GetDigitalCredentialOption, GetCredentialRequest, DigitalCredential, and dc-authorization+sd-jwt DCQL queries. Produces Android client-side carrier precheck and Credential Manager TS.43 token request code alongside backend OpenID4VP and DCQL request construction and token exchange logic. Don't use for SMS OTP, TelephonyManager.getLine1Number reads, digital wallet holder registration, or issuing credentials to wallets.
Как установить скилл phone-number-verification?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл phone-number-verification запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic