🐛 Bug Report: SecurityError: The RP ID "localhost" is invalid for this domain #200

Closed
opened 2025-10-07 00:05:44 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @pro-sumer on GitHub.

Reproduction steps

Migrate to version 1.0.0

Expected behavior

Pocket ID should allow me to select a (valid) passkey and then authorize me.

Actual Behavior

I get this error in the console, immediately after clicking on "Authorize" (even before getting the chance to select a passkey in 1Password or iCloud):

SecurityError: The RP ID "localhost" is invalid for this domain

Version and Environment

v1.0.0

Log Output

No response

Originally created by @pro-sumer on GitHub. ### Reproduction steps Migrate to version 1.0.0 ### Expected behavior Pocket ID should allow me to select a (valid) passkey and then authorize me. ### Actual Behavior I get this error in the console, immediately after clicking on "Authorize" (even before getting the chance to select a passkey in 1Password or iCloud): ``` SecurityError: The RP ID "localhost" is invalid for this domain ``` ### Version and Environment v1.0.0 ### Log Output _No response_
OVERLORD added the bug label 2025-10-07 00:05:44 +03:00
Author
Owner

@pro-sumer commented on GitHub:

Oh no; I informed someone about exactly that on the Pocket ID Discord server just before posting this bug...

Turns out I did update my source .env file correctly, but apparently my Ansible install failed, because on my VPS it still contained PUBLIC_APP_URL... 🤦

Problem solved! 🎉

@pro-sumer commented on GitHub: Oh no; I informed someone about exactly that on the [Pocket ID Discord](https://discord.com/channels/1347317240575561809/1347317241493852171/1376164153357631590) server just before posting this bug... Turns out I did update my source `.env` file correctly, but apparently my Ansible install failed, because on my VPS it still contained `PUBLIC_APP_URL`... 🤦 Problem solved! 🎉
Author
Owner

@stonith404 commented on GitHub:

You have to rename the PUBLIC_APP_URL environment variable to APP_URL as mentioned in the migration docs.

@stonith404 commented on GitHub: You have to rename the `PUBLIC_APP_URL` environment variable to `APP_URL` as mentioned in the migration docs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pocket-id#200