2.0.1 • Published 4 years ago
ackee-auth-api-agent v2.0.1
Renamed (and reimplemented) to @ackee/antonio
Ackee Auth Api Agent
How to use
- The usage is the same as with
ApiAgentso take a look at that package. - Instead of returning a
Promise, every request returns aGenerator functionto be used withredux, executed withredux-sagaand mainly withackee-redux-token-auth. AuthApiAgentjust extendsApiAgentand wraps its.requestmethod intoackee-redux-token-auths'sauthorizedFnthat gives us credentials as a parameter.
Dependencies
Wider dependecies
Migration guide
From 1.*.* to 2.*.*
- Just be sure you're using
ackee-redux-token-auth@1.*.*in an app where you're usingackee-auth-api-agent@2.*.*.