MARKETPLACE
PLUGINS
PRIME PIN & OTP MOBILE
Prime PIN & OTP Mobile logo

Prime PIN & OTP Mobile

Published September 2026
   •    Updated September 2026

Plugin details

Prime PIN & OTP Mobile is a powerful and highly customizable PIN and OTP input component built for Bubble Native Mobile applications. Create professional PIN codes, OTP verification screens, passcodes, access codes, and secure local PIN experiences with full control over appearance, input behavior, attempts, lockout, events, and workflows.

Editor Page:
https://bubble.io/page?id=plugins-testes-rincao&app_type=mobile&tab=Design&name=Prime+PIN+%26+OTP+Mobile&type=page

Demo Page:
https://plugins-testes-rincao.bubbleapps.io/version-test/api/1.1/mobile/preview?%20OTP%20Mobile&debug_mode=false&preview_view=Prime%20PIN

The plugin includes secure local PIN storage using native device secure storage. Secure PINs are protected using a salted cryptographic hash, so the original PIN is not stored as plain text.
Key Features
- PIN and OTP input modes
- Custom PIN/OTP length
- Optional masked input
- Configurable mask delay
- Numeric-only input
- Auto focus
- Auto completion support
- Paste control
- Haptic feedback
- Configurable box size, spacing, borders, radius, and typography
- Custom normal, focus, error, and success colors
- Attempt tracking
- Maximum attempt control
- Automatic temporary lockout
- Configurable lock duration
- Error and success visual states
- Multiple language support
- Secure local PIN storage
- Salted cryptographic PIN hashing
- Save Secure PIN
- Verify Secure PIN
- Check Secure PIN
- Delete Secure PIN
- Dedicated states and events for Bubble workflows
Supported languages include English, Portuguese, Spanish, French, German, Italian, and Chinese.
Prime PIN & OTP Mobile is designed for developers who need more than a simple OTP input field, combining customizable native input, workflow control, attempt management, and secure local PIN functionality in a single Bubble Native Mobile plugin.

Free

For everyone

stars   •   0 ratings
0 installs  
This plugin does not collect or track your personal data.

Platform

Native mobile

Contributor details

Rincão Informática Academy logo
Rincão Informática Academy
Joined 2023   •   40 Plugins
View contributor profile

Instructions

Add the Prime PIN & OTP Mobile element to your Native Mobile page and configure its properties from the Bubble editor. 1. Configure the Input
Use mode to define the input behavior:
- otp – for one-time passwords and verification codes.
- pin – for PIN/passcode interfaces.
Set length to define the number of digits required.
Use the available appearance fields to customize box dimensions, spacing, border, radius, font size, background, text, focus, error, and success styles.
You can also configure masking, autofocus, autocomplete, paste behavior, numeric-only input, haptic feedback, maximum attempts, lock duration, and mask delay.
2. Use Element Actions
The plugin provides actions for controlling the element directly from Bubble workflows:
- Clear – Clears the current value.
- Focus – Focuses the input.
- Set Value – Sets the PIN/OTP value programmatically.
- Show Error – Displays the error state and can optionally register a failed attempt.
- Show Success – Displays the success state.
- Disable – Disables user input.
- Enable – Enables user input.
- Reset Attempts – Resets failed attempts and lockout information.
- Save Secure PIN – Securely stores a protected representation of a PIN on the device.
- Verify Secure PIN – Verifies a PIN against the securely stored PIN.
- Check Secure PIN – Checks whether a secure PIN exists.
- Delete Secure PIN – Removes the secure PIN from the device.
3. Secure PIN Storage
To save a local PIN, run Save Secure PIN and provide:
pin – The PIN that should be protected and stored.
storage_key – A unique identifier for the stored PIN. The default is prime_pin.
Use the same storage_key for Save, Verify, Check, and Delete operations.
The original PIN is not stored as plain text. The plugin generates a random salt and stores a cryptographic hash using native secure storage.
4. Verify a Secure PIN
Run Verify Secure PIN with the PIN entered by the user and the same storage_key used when saving it.
Use the plugin's states and events to determine the result.
For example:
When Prime PIN & OTP Mobile secure_pin_verified → Continue login/unlock workflow.
When Prime PIN & OTP Mobile secure_pin_invalid → Show an invalid PIN message.
5. Check for an Existing PIN
Run Check Secure PIN to determine whether a PIN has previously been stored for the specified storage_key.
After the secure_pin_checked event is triggered, check the secure_pin_exists state:
yes = A secure PIN exists.
no = No secure PIN exists.
The secure_pin_checked event indicates that the check has completed. It does not by itself indicate that a PIN was found.
6. Delete a Secure PIN
Run Delete Secure PIN using the same storage_key.
When the PIN is successfully removed, the secure_pin_deleted event is triggered and secure_pin_exists becomes no.
7. Available Secure PIN States
Use these states in your Bubble workflows:
secure_pin_exists – Indicates whether a secure PIN exists.
secure_pin_valid – Indicates whether the last PIN verification matched the stored PIN.
secure_operation_success – Indicates whether the last secure operation completed successfully.
secure_message – Provides information about the result of the last secure PIN operation.
8. Events
The plugin provides events including:
value_changed, completed, focused, blurred, cleared, error, success, attempt_failed, locked, unlocked, secure_pin_saved, secure_pin_verified, secure_pin_invalid, secure_pin_deleted, secure_pin_checked, and secure_error.
These events can be used directly as workflow triggers.
Important
Secure PIN operations use native device secure storage and are intended for the Native Mobile environment.
The storage_key is only an identifier for the locally stored PIN. It is not an API key, password, or secret key.
For OTP verification against SMS, email, authentication providers, or external APIs, use the plugin's PIN/OTP input and workflow events together with your preferred verification service. The plugin does not send SMS or email messages itself.

Types

This plugin can be found under the following types:
Element   •   Event   •   Action

Categories

This plugin can be found under the following categories:
Customer Support   •   Mobile   •   Productivity   •   Small Business   •   Technical   •   Visual Elements

Resources

Support contact

Rating and reviews

No reviews yet

This plugin has not received any reviews.
Bubble