diff --git a/packages/server/src/server.js b/packages/server/src/server.js index 1b354eb7..7b6cccc6 100644 --- a/packages/server/src/server.js +++ b/packages/server/src/server.js @@ -31,12 +31,12 @@ class Server { service, encoder, decoder, - catch: fail, principal = Principal, canIssue = (capability, issuer) => capability.with === issuer || issuer === id.did(), - ...context + ...rest }) { + const { catch: fail, ...context } = rest this.context = { id, principal, canIssue, ...context } this.service = service this.encoder = encoder