authyra_dio 0.3.0
authyra_dio: ^0.3.0 copied to clipboard
Dio interceptor for Authyra: attaches a fresh access token to each request, and on a 401 refreshes once for all concurrent requests, then retries.
Changelog #
All notable changes to the authyra_dio package. All Authyra packages are released together with the same version.
0.3.0 #
First release.
AuthyraInterceptor: attaches a valid access token to each request, refreshes once on a 401 for all concurrent requests of the same session, and retries once.- Per-request options:
AuthyraInterceptor.skipandAuthyraInterceptor.sessionKey. shouldAttach,headerNameandtokenPrefixoptions.