David Gonzalez
Jun 22, 2023

--

Good start ! Now you can think about a way to handle logged/unlogged requests. I mean, if you don't need token, you should not retrieve it.

Also, you can think about how to handle refresh token. Maybe looking around Client is a good start 🙂.

And what about if one request need to add something in the header ? How do you handle that ?

And by the way, I don't know how get it works, but it seems useless to lazy register an object (you already instantiate it) 😁

--

--

David Gonzalez
David Gonzalez

Written by David Gonzalez

Hi, I’m David, a french mobile applications developer. As a freelance, I work on Android and iOS applications since 2010. I also work on Flutter now !

Responses (1)