just a silly error change
This commit is contained in:
parent
9246da2e84
commit
5c294b89a1
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
const uuid = require('uuid');
|
||||
const crypto = require('crypto');
|
||||
const { Op, TimeoutError } = require('sequelize');
|
||||
const { Op } = require('sequelize');
|
||||
const { verifyEvent } = require('nostr-tools');
|
||||
|
||||
const models = require('../models');
|
||||
|
|
@ -60,7 +60,7 @@ class NostrServiceProvider {
|
|||
const challenge = challengeTag[1];
|
||||
|
||||
if (!(await isNostrChallengeFresh(challenge))) {
|
||||
throw TimeoutError('Challenge expired, request new one.');
|
||||
throw errors.ExpiredError('Challenge expired, request new one.');
|
||||
}
|
||||
|
||||
if (await hasNostrChallengeBeenCompleted(challenge)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue