profcomff / profcomff/auth-api
Дополнить логику автопродления
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 15
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Issue open by Семён via telegram message.
Еслт токен имеет больший срок жизни, чем вычисляется по настройкам от текущего момента, то не менять его срок жизни, так как он будет меньше
Вот строка: https://github.com/profcomff/auth-api/blob/ab26cc35e8e82f078799e70cb041f0c1b2477e37/auth_backend/utils/security.py#L58
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with auth_backend/utils/security.py at line 58 and read the surrounding token auto-renewal logic. Check how the lifetime calculated from the current settings is compared with the token's existing lifetime. Done means a token with the longer existing lifetime keeps it instead of being shortened.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 50/100