grant_type nostr -> nostr_bunker, connections -> nip46_tokens

This commit is contained in:
Alex Gleason
2024-05-29 16:14:21 -05:00
parent a617e32d65
commit 7221b5f203
4 changed files with 9 additions and 9 deletions

View File

@@ -23,7 +23,7 @@ export const signerMiddleware: AppMiddleware = async (c, next) => {
const kysely = await DittoDB.getInstance();
const { user_pubkey, server_seckey, relays } = await kysely
.selectFrom('connections')
.selectFrom('nip46_tokens')
.select(['user_pubkey', 'server_seckey', 'relays'])
.where('api_token', '=', bech32)
.executeTakeFirstOrThrow();