Skip to content

Commit

Permalink
Merge 2df2e36 into 5ca903f
Browse files Browse the repository at this point in the history
  • Loading branch information
rijx committed May 3, 2019
2 parents 5ca903f + 2df2e36 commit 5ea7d6e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/context.js
Expand Up @@ -279,7 +279,12 @@ class ContextSession {
const externalKey = this.externalKey;

if (externalKey) await this.store.destroy(externalKey);
ctx.cookies.set(key, '', opts);

if (opts.externalKey) {
opts.externalKey.set(ctx, '');
} else {
ctx.cookies.set(key, '', opts);
}
}

/**
Expand Down

0 comments on commit 5ea7d6e

Please sign in to comment.