Renamed (and reimplemented) to @ackee/antonio
Ackee Auth Api Agent
How to use
- The usage is the same as with
ApiAgent
so take a look at that package. - Instead of returning a
Promise
, every request returns aGenerator function
to be used withredux
, executed withredux-saga
and mainly withackee-redux-token-auth
. -
AuthApiAgent
just extendsApiAgent
and wraps its.request
method intoackee-redux-token-auths
'sauthorizedFn
that gives us credentials as a parameter.
Dependencies
Wider dependecies
Migration guide
1.*.*
to 2.*.*
From - Just be sure you're using
ackee-redux-token-auth@1.*.*
in an app where you're usingackee-auth-api-agent@2.*.*
.