profcomff / profcomff/auth-api

Дополнить логику автопродления

Open
#201 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug :lady_beetle:
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.