Account Registration & Hardware Device Pairing
Learn how SpotLocker authenticates users, registers hardware devices, enforces active device limits, and provisions licensed container access.
1. User Account Registration & Login
To use SpotLocker, users register an account either via the mobile application or the web storefront. User credentials are protected using bcrypt password hashing and OAuth2 JWT access tokens.
API Registration Endpoint
When registering an account programmatically or via client interfaces, a POST request is made to /api/v1/auth/register:
API Login Endpoint
Authenticating generates short-lived access tokens and refresh tokens:
Response (200 OK):
2. Hardware Device Registration & Pairing
SpotLocker protects waypoint intelligence by binding access licenses to specific registered hardware devices. Every mobile device (iPhone, Android Phone, iPad, Android Tablet) extracts a unique hardware UUID fingerprint upon installation.
Each user account is granted a maximum of 2 active registered devices simultaneously (e.g., 1 Primary Smartphone and 1 Boat Marine Tablet). Attempting to pair a 3rd device without de-registering an older device will trigger a 400 Bad Request and write a too_many_devices audit log entry.
Device Registration Flow
App Launch & Fingerprint Detection
The client app queries hardware identifiers (Android ID / iOS Vendor Identifier) via device_service.dart.
Device Registration API Call
The app sends a registration request to POST /api/v1/devices/register:
Server Verification & Device Token Issuance
The server validates active device counts and records the device record in the database. Subsequent requests for licensed waypoint coordinates must include the header X-Device-Fingerprint matching an active paired device.
3. Managing & Deactivating Paired Devices
Users can view and deactivate registered devices from the Account Settings Screen in the mobile app or via the web portal.
If you upgrade your phone or replace a boat tablet, navigate to Account > Registered Devices, locate the old device, and tap Deactivate Device. This immediately frees up a slot for your new hardware.