Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix never expiring access tokens and codes
This number was being encoded as a binary, and later compared to an integer. Erlang term comparison rules mean that the time of expiration was always greater than the current time. The 'expiry_time' parameter in a grant context is now an integer rather than a binary. This may be a breaking change for anyone relying on this value. A side issue here was that the mocks in the TTL tests were returning bad results that would trigger the expected results.
- Loading branch information
1 parent
7e644f8
commit 2b69523
Showing
2 changed files
with
94 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters