package templates import "bookhoard/internal/handlers" templ Devices(user User, devices []handlers.DeviceInfo, errorMessage string, baseURL string) {
Manage your reading devices and sync settings
Add your reading devices to enable cross-device sync
{ device.DeviceType }
Device Sync Configuration
if device.DeviceType == "kobo" {Paste this URL into Kobo's api_endpoint setting
Enter this token in the KOReader plugin settings
Old token will immediately stop working
On your e-reader, open the Bookhoard sync menu and tap Register device — then enter the 6-digit code it shows below. Only someone holding the device can see the code, so nobody else can claim (or interfere with) your registration.
plugins/ directory
{ baseURL }
Loading mappings...
{ deviceType } device · Pair it with your account? Its reading progress will sync here.
No waiting device matches that code — check the digits on your e-reader's screen.
} else if status == "expired" {That code expired. Tap Register device on the device again for a fresh one.
} else if status == "claimed" {That code was already used. If the device isn't listed above, register it again from the device.
} else if status == "rate_limited" {Too many pairing attempts — wait a minute and try again.
} }