Skip to content

Instantly share code, notes, and snippets.

@nderkach
Created December 7, 2017 15:18
Show Gist options
  • Save nderkach/90b33dc7120cf32f5a18ce7200a3a6ff to your computer and use it in GitHub Desktop.
Save nderkach/90b33dc7120cf32f5a18ce7200a3a6ff to your computer and use it in GitHub Desktop.
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