For vendors using Usakey

Set up email verification

Prepare license users and a per-user policy so that people can verify themselves with a code sent to their email address.

Plans
Personal Team Enterprise
Who does this
Owner Admin

How it works

With a per-user license, a user enters their email address in your app and receives a 6-digit verification code at that address. Entering the code proves who they are, and the device is activated right away. You can grant and stop access per person without company accounts (OIDC) or the customer portal.

How email verification worksWhen a user enters their email address and license key in your app, your app asks Usakey to send a verification code. Usakey emails a 6-digit code to the address of the license user registered in your directory. The code is valid for 10 minutes and can be tried up to 5 times. When the user enters the code, your app checks it with Usakey, receives an activation token, and activates the device with that token.UserYour appUsakeyEnter the emailaddress andlicense key1Ask Usakey tosend a code2Email a 6-digit code (10 min, up to 5 tries)3Enter the code (plusa second code iftwo-factor is set up)4Check the code5Activation token6Activate the devicewith the token7How email verification worksWhen a user enters their email address and license key in your app, your app asks Usakey to send a verification code. Usakey emails a 6-digit code to the address of the license user registered in your directory. The code is valid for 10 minutes and can be tried up to 5 times. When the user enters the code, your app checks it with Usakey, receives an activation token, and activates the device with that token.1UserYour appEnter the email addressand license key2Your appUsakeyAsk Usakey to send a code3UsakeyUserEmail a 6-digit code(10 min, up to 5 tries)4UserYour appEnter the code (plusa second code iftwo-factor is set up)5Your appUsakeyCheck the code6UsakeyYour appActivation token7Your appUsakeyActivate the devicewith the token
Your app activates the device with the activation token it receives in exchange for the checked code.
  • A verification code works for 10 minutes, can be tried up to 5 times, and can only be used once.
  • If the user has set up two-factor authentication, they also enter a code from their authenticator app, or an approval code shown after approving with their passkey.
  • Verification codes go only to users whose email addresses you registered in the directory and who have a license assigned. Usakey sends no email to unregistered addresses. It returns the same response to the product app either way, so the app cannot tell whether an address is registered.

Prepare a per-user license

  1. Step 1Create a per-user policy and license

    As with the customer portal, create a per-user policy and issue a license from it to assign from (see Set up the customer portal). The policy page shows the verification methods and whether your current plan includes them.

    The details of a per-user policy, listing email verification and the customer portal as verification methods and whether the current plan includes each.

Add users to your list and assign the license

  1. Step 1Add a license user with an email address

    In Add license user, enter the name and email address. Leave the OIDC connection blank to register the user with a local ID in the directory. Usakey sends verification codes to the address you enter. You cannot register two users with local IDs and the same email address in one workspace.

    When the customer is the person who uses your software, add the customer as an Individual: Usakey creates the user with the same name and email address, and assigns the per-user licenses issued to that customer automatically, so you can skip the next step.

    The Add license user page with a name and email address entered and no OIDC connection selected, so the user is added to your own list.
  2. Step 2Assign the license

    On the per-user license's assignment page, assign it to the user you added (the same steps as in Set up the customer portal).

When the verification code email is sentWhen your app asks Usakey to send a verification code, Usakey sends the email only when all of these hold. The license key is valid and its policy is per-user. Your plan is Personal or higher. Exactly one active local-ID license user has that email address in your directory. That user is assigned this license. If any of them is missing, no email is sent, but your app gets the same response either way, so whether the address is registered can't be learned.The license key is validand the policy is per-userYour plan is Personal or higherExactly one active local-IDlicense user has the addressThat user is assigned this licenseEmailthe codeSend no emailAll trueAnymissingYour app gets the same response either way, sowhether the address is registered stays hiddenWhen the verification code email is sentWhen your app asks Usakey to send a verification code, Usakey sends the email only when all of these hold. The license key is valid and its policy is per-user. Your plan is Personal or higher. Exactly one active local-ID license user has that email address in your directory. That user is assigned this license. If any of them is missing, no email is sent, but your app gets the same response either way, so whether the address is registered can't be learned.The license key is validand the policy is per-userYour plan isPersonal or higherExactly one activelocal-ID license userhas the addressThat user isassigned this licenseEmailthe codeSend noemailAll trueAnymissingYour app gets the sameresponse either way, sowhether the address isregistered stays hidden

Check that it's ready

  1. Step 1Check the license user's details

    The license user's details page shows whether email verification can be used, and if not, why and how to fix it (no email address, another user with the same address, suspended, not included in your plan, and so on).

    To require two-factor authentication from a user, set it up on this page. We recommend a passkey, which works as follows. No change to the product app or the SDK is needed.

    1. Ask to set up a passkey emails the user a setup link (valid for 24 hours, one use).
    2. The user opens the link and registers a passkey.
    3. From then on, the verification code email links to a page where the user approves with the passkey.
    4. The user approves on that page and enters the approval code shown in the product app's “authenticator app code or recovery code” field.
    Using passkeys for a user's two-factor authenticationWhen you request passkey setup in the console, the user gets a setup link by email. The link is valid for 24 hours and works once. After the user registers a passkey, each verification code email links to an approval page. The user approves there with the passkey and enters the approval code shown (valid for 10 minutes, one use) in your app's "authenticator app code or recovery code" field. Your app and the SDK don't need changes.You(console)UsakeyUserYour appPasskey setup (once)Requestpasskey setup1Setup link(24 h, one use)2Register a passkeyand save therecovery codes3Each verificationApproval link inthe code email4Approve with thepasskey and getan approval code(10 min, one use)5Enter theapprovalcode in thetwo-factorfield6Using passkeys for a user's two-factor authenticationWhen you request passkey setup in the console, the user gets a setup link by email. The link is valid for 24 hours and works once. After the user registers a passkey, each verification code email links to an approval page. The user approves there with the passkey and enters the approval code shown (valid for 10 minutes, one use) in your app's "authenticator app code or recovery code" field. Your app and the SDK don't need changes.Passkey setup (once)1You (console)UsakeyRequest passkey setup2UsakeyUserSetup link (24 h, one use)3UserRegister a passkey andsave the recovery codesEach verification4UsakeyUserApproval link inthe code email5UserApprove with the passkeyand get an approval code(10 min, one use)6UserYour appEnter the approval codein the two-factor field
    The two-factor section on a license user's details. Two-factor authentication is not set up, with a button to request passkey setup and a button to set up an authenticator app.

    For an authenticator app, set it up on this page and give the user the displayed information securely. Users with an authenticator app enter its code in addition to the verification code.

    The email verification section in a license user's details, with a tag showing that it's ready to use and a link to the manual.

Your app and your users

The product app needs a screen for entering an email address and a verification code. For users who need two-factor authentication, include a field for an authenticator app code or recovery code. Passkey users enter their approval code in that field. The product app asks Usakey to send a verification code. Usakey checks the code the user enters, and the app receives the token for device activation. See the API reference for the specification. To ask an AI assistant to implement this, follow the same steps as in Add license checks to your app.

You can send your users this page's URL as is: https://usakey.jp/docs/manual/end-user/email-verification?locale=en

Ask AI to implement or configure

Copy the instruction for your task and paste it into an AI assistant connected to MCP. You can also select the same task from the MCP prompt list. See the product integration page for connection steps. Add license checks to your app

Email and two-factor verification
Use the Usakey MCP server and distributed skills for this task. First read the relevant skill VERSION, SKILL.md and references below. If the local MCP cannot serve resources, read the same files from the distribution ZIP advertised by the connected server. Confirm product, environment, language and existing settings; never invent missing values. Use the official SDK in product apps and never embed a Management API key. Keep management operations within the approved access and plan. Keep secrets out of chat, screens and logs. Write expected behavior as tests before implementation and report actual verification and unverified surfaces.

Implement named-user email entry, email-code and second-factor screens. Offer only available_methods. Display expiry, remaining attempts and resend delays from responses; accept letters and hyphens in the second-factor field. Pass the identity token into activation without persisting codes or tokens. Test unknown addresses, wrong and expired codes, lockout and 429.

References
skill://usakey-auth-integration/references/license-key-delivery.md
skill://usakey-auth-integration/references/product-app-screens.md
skill://usakey-auth-integration/references/outcome-matrix.md

Management tools for configuration and checks
create_license_user
assign_license

Screenshots were taken in a test environment with sample data. IDs such as product IDs, license keys, and activation tokens are masked. Some details may change as we improve the screens.