Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

added app level token expiry #499

Merged
merged 2 commits into from Jan 16, 2014
Merged

Conversation

dannycoates
Copy link
Contributor

This implements token expiry for passwordChange passwordForgot and accountReset tokens.

The lifetime (in milliseconds) of each token can be configured in the json config file.

{
  "tokenLifetimes": {
    "accountResetToken": 900000,
    "passwordChangeToken" 900000,
    "passwordForgotToken": 900000
  }
}

Deleting expired tokens remains as a TODO and it would still be useful if the data layer could automatically delete tokens proactively, but these are internal issues.

@dannycoates
Copy link
Contributor Author

@rfk .push('r?')

},
function(err) {
cb(err);
cb(err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all right, who left all these semicolons lying around over here?! :-)

@rfk
Copy link
Contributor

rfk commented Jan 16, 2014

> var lgtm = @rfk.pop()
> console.log(lgtm)
r+

dannycoates added a commit that referenced this pull request Jan 16, 2014
@dannycoates dannycoates merged commit 677a8a7 into mozilla:master Jan 16, 2014
@dannycoates dannycoates deleted the token-expiry branch May 13, 2015 00:02
rfk pushed a commit that referenced this pull request Oct 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants