mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-05 02:24:59 +02:00
Update security key error handling and user feedback. Improve user guidance for security key interactions and Implement proper error handling for permission denials and timing issues.
This commit is contained in:
parent
3994b25a71
commit
6ccc05b183
4 changed files with 127 additions and 31 deletions
|
@ -32,7 +32,15 @@ import { verifyPassword } from "@server/auth/password";
|
|||
import { unauthorized } from "@server/auth/unauthorizedResponse";
|
||||
|
||||
// The RP ID is the domain name of your application
|
||||
const rpID = new URL(config.getRawConfig().app.dashboard_url).hostname;
|
||||
const rpID = (() => {
|
||||
const url = new URL(config.getRawConfig().app.dashboard_url);
|
||||
// For localhost, we must use 'localhost' without port
|
||||
if (url.hostname === 'localhost') {
|
||||
return 'localhost';
|
||||
}
|
||||
return url.hostname;
|
||||
})();
|
||||
|
||||
const rpName = "Pangolin";
|
||||
const origin = config.getRawConfig().app.dashboard_url;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue