Skip to content

Commit

Permalink
fix: consistent session save ttl when calling interactionFinished()
Browse files Browse the repository at this point in the history
fixes #314
  • Loading branch information
panva committed Jul 13, 2018
1 parent ea04cc5 commit b5657eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class Provider extends events.EventEmitter {
async interactionFinished(req, res, result) {
const interaction = await getInteraction.call(this, req, res);
interaction.result = result;
await interaction.save(interaction.exp);
await interaction.save(interaction.exp - epochTime());

res.statusCode = 302; // eslint-disable-line no-param-reassign
res.setHeader('Location', interaction.returnTo);
Expand Down

0 comments on commit b5657eb

Please sign in to comment.