We need to move the place where we keep the access token. Instead of saving the access token on the BitreserveClient, we need to keep the access token on the user model.
That way we can only use one instance of BitreserveClient with multiple users and the access token will be in a place where it makes more sense.
We need to move the place where we keep the access token. Instead of saving the access token on the
BitreserveClient
, we need to keep the access token on the user model.That way we can only use one instance of
BitreserveClient
with multiple users and the access token will be in a place where it makes more sense.