rootstrap / ios-base

Boilerplate for new iOS projects using Swift 5. Provides a handful of functionalities.
https://rootstrap.com/
MIT License
259 stars 63 forks source link

Close session if 401 forbidden is returned from API. #65

Closed glm4 closed 6 years ago

glm4 commented 6 years ago

While using tokens from device_token_auth for session management, implement feature to invalidate the current session if error code 401 is returned in any request. That way, when the token expires the user is not longer stuck with an invalid session.

MaicolBen commented 6 years ago

If you need an example, you can check https://github.com/rootstrap/GIveTide-iOS/pull/82