-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Transport.Expiry() to query token expiration
Since it could be interesting in some cases, return this for the user to examine. Also factor out the "is a token expired" logic and return the current value of "we think it's expired" when calling Expiry(). expiresAt, expired, err := trans.Expiry()
- Loading branch information
1 parent
8f41e65
commit 0d537b3
Showing
1 changed file
with
14 additions
and
1 deletion.
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