Created
December 7, 2017 15:18
-
-
Save nderkach/90b33dc7120cf32f5a18ce7200a3a6ff to your computer and use it in GitHub Desktop.
This file contains hidden or 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
private var authToken: String? { | |
didSet { | |
service.invalidateConfiguration() | |
guard let token = authToken else { return } | |
let jwt = try? JWTDecode.decode(jwt: token) | |
tokenExpiryDate = jwt?.expiresAt | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment