twilio / twilio/twilio-python

Code Enhancement

Open
#777 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority: low status: waiting for feedback type: community enhancement
Dominant language
Python
Stars
2.1k
Forks
815
Avg merge
2d 13h
Merged PRs (30d)
2

Description

Issue Summary

Change the function time.time to datetime.datetime in the folder twilio/jwt/init.py

Code Snippet
#if ttl:
              expiration_time = datetime.datetime.utcnow() + datetime.timedelta(seconds=ttl)
         else:
              expiration_time = datetime.datetime.utcnow() + datetime.timedelta(seconds=self.ttl)

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 by reading twilio/jwt/init.py and inspect the ttl branches shown in the issue. Compare the current time calculation with the requested datetime.datetime approach; done means the targeted function usage is updated without changing the intended expiration behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
security
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.