Encode doesn't need sessionId anymore.

This commit is contained in:
elweyn 2021-11-11 12:32:37 +01:00
parent e76646b327
commit cbc6570d65
2 changed files with 2 additions and 2 deletions

View File

@ -516,7 +516,7 @@ export class TransactionResolver {
}
// validate recipient user
// TODO: the detour over the public key is unnecessary
// TODO: the detour over the public key is unnecessary sessionId is removed
const recipiantPublicKey = await getPublicKey(email, context.sessionId)
if (!recipiantPublicKey) {
throw new Error('recipiant not known')

View File

@ -200,7 +200,7 @@ export class UserResolver {
context.setHeaders.push({
key: 'token',
value: encode(result.data.session_id, result.data.user.public_hex),
value: encode(result.data.user.public_hex),
})
const user = new User(result.data.user)
// Hack: Database Field is not validated properly and not nullable