Conduit
Conduit copied to clipboard
T 1331575: Updated Refresh Token API minimumExpirationTime to 5 minutes
- [x] I've read, understood, and done my best to follow the CONTRIBUTING guidelines.
This pull request includes (pick all that apply):
- [ ] Bugfixes
- [ ] New features
- [ ] Breaking changes
- [ ] Documentation updates
- [ ] Unit tests
- [ ] Other
Summary
- The refresh token expiry has been change to 1 hour instead of 24 hours.
- Previously, the refresh token API call timings before expiry i.e.
minimumExpirationTime
was set to 900 i.e. 15 minutes for 24 hours. - So, updated
minimumExpirationTime
to 5 minutes.
Implementation
- It includes a change to the
BearerToken
struct in theSources/Conduit/Auth/Models/OAuth2Token.swift
file. TheminimumExpirationTime
for theisValid
property has been reduced from 15 minutes to 5 minutes. This change affects how we determine the validity of the token.
Test Plan
- Test on all projects and verify refresh token API has been called 5 minutes before expiry.