trivago / Heimdallr.swift

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

Prevent firing multiple requests? #92

Closed marcelofabri closed 8 years ago

marcelofabri commented 8 years ago

From what I've seen in the code, no special treatment is done to prevent multiple network calls being fired in authenticateRequest.

This can be a problem, as a server can invalidate one of the returned tokens. Should the library handle this?

Stengo commented 8 years ago

Great catch! We looked into this and I just opened a pull request that should fix the issue.

felixvisee commented 8 years ago

See #93.

marcelofabri commented 8 years ago

Fixed by #93