just a silly error change

This commit is contained in:
counterweight 2025-03-07 12:53:37 +01:00
parent 9246da2e84
commit 5c294b89a1
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C

View file

@ -1,6 +1,6 @@
const uuid = require('uuid'); const uuid = require('uuid');
const crypto = require('crypto'); const crypto = require('crypto');
const { Op, TimeoutError } = require('sequelize'); const { Op } = require('sequelize');
const { verifyEvent } = require('nostr-tools'); const { verifyEvent } = require('nostr-tools');
const models = require('../models'); const models = require('../models');
@ -60,7 +60,7 @@ class NostrServiceProvider {
const challenge = challengeTag[1]; const challenge = challengeTag[1];
if (!(await isNostrChallengeFresh(challenge))) { if (!(await isNostrChallengeFresh(challenge))) {
throw TimeoutError('Challenge expired, request new one.'); throw errors.ExpiredError('Challenge expired, request new one.');
} }
if (await hasNostrChallengeBeenCompleted(challenge)) { if (await hasNostrChallengeBeenCompleted(challenge)) {