Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement tokens for password reset #14

Closed
14 tasks done
gr2m opened this issue Oct 17, 2016 · 0 comments · Fixed by #15
Closed
14 tasks done

Implement tokens for password reset #14

gr2m opened this issue Oct 17, 2016 · 0 comments · Fixed by #15
Assignees

Comments

@gr2m
Copy link
Member

gr2m commented Oct 17, 2016

Tokens can be used for one-time signins. The are stored on the user account document in the tokens: [] property.

  • api.sessions.add(options)
    • rename options.auth to options.account
    • move options.username to options.account.username (breaking change, not worth a deprecation at this point)
    • Implement options.account.token to create a session using token only.
    • Delete token after using it.
    • Implement new view "byToken" similar to the existing "byId" view.
    • implement options.timeout for sessions.add(options) #16 add options.timeout, default to 1209600 (14 days) to show what
  • api.account()
  • api.account().tokens.add({type: 'passwordreset', timeout: 7200, email: '[email protected]')
  • review / update docs

:octocat:💁 Pull Request #15

@gr2m gr2m self-assigned this Oct 17, 2016
@gr2m gr2m closed this as completed in #15 Oct 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant