AuthRest.general constructor
const
AuthRest.general({
- required Dio dio,
- required AuthMatcher refreshTokensMatcher,
- required Future<
AuthToken> refresh(- Dio dio,
- 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;