AuthRest.general constructor

const AuthRest.general({
  1. required Dio dio,
  2. required AuthMatcher refreshTokensMatcher,
  3. required Future<AuthToken> refresh(
    1. Dio dio,
    2. AuthToken token
    ),
})

general implementation.

provide matcher against refresh calls and a lambda to refresh tokens.

Implementation

const factory AuthRest.general({
  required Dio dio,
  required AuthMatcher refreshTokensMatcher,
  required Future<AuthToken> Function(Dio dio, AuthToken token) refresh,
}) = AuthRestGeneralImpl;