lynndylanhurley / lynndylanhurley/devise_token_auth
Old tokens not being deleted
- Dominant language
- Ruby
- Stars
- 3.6k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
* **Version**: 0.1.43
I currently have `config.max_number_of_devices = 6` and `config.token_lifespan = 10.weeks` but everytime I login it is creating a new token and not deleting the older ones. As a result I have 63 tokens right now which I verified by running `User.first.tokens.count`
Is there a way to delete old tokens?
Contributor guide
Research direction
The report names config.max_number_of_devices, config.token_lifespan, and User.first.tokens.count; begin by tracing the token creation and cleanup entry points used during login. Reproduce the reported configuration and inspect the resulting token count. Done means expired or excess tokens are removed according to the configured limits and the behavior is covered by a verification or regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rails, ruby
- Domain
- api, authentication, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100