signerMiddleware: add debug log

This commit is contained in:
Alex Gleason 2024-05-14 14:18:44 -05:00
parent e5392f4d9e
commit a061c248bd
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 4 additions and 1 deletions

View File

@ -1,9 +1,12 @@
import { NSecSigner } from '@nostrify/nostrify';
import { Stickynotes } from '@soapbox/stickynotes';
import { nip19 } from 'nostr-tools';
import { AppMiddleware } from '@/app.ts';
import { ConnectSigner } from '@/signers/ConnectSigner.ts';
const console = new Stickynotes('ditto:signerMiddleware');
/** We only accept "Bearer" type. */
const BEARER_REGEX = new RegExp(`^Bearer (${nip19.BECH32_REGEX.source})$`);
@ -30,7 +33,7 @@ export const signerMiddleware: AppMiddleware = async (c, next) => {
break;
}
} catch {
// the user is not logged in
console.debug('The user is not logged in');
}
}