trivago / Heimdallr.swift

Easy to use OAuth 2 library for iOS, written in Swift.
Apache License 2.0
639 stars 87 forks source link

Anticipate access token expiration #12

Open tibr opened 9 years ago

tibr commented 9 years ago

Example: If the access token expires in 1 second, do we want to treat it as expired before using it? Should we add a safety interval that is configurable from the outside? What should the default value be?

jPaolantonio commented 7 years ago

I thought about adding an NSTimeInterval parameter into the init that can default to 0. Thoughts?