diff --git a/packages/fresh_dio/lib/src/fresh.dart b/packages/fresh_dio/lib/src/fresh.dart index 832c62f..5051dae 100644 --- a/packages/fresh_dio/lib/src/fresh.dart +++ b/packages/fresh_dio/lib/src/fresh.dart @@ -49,14 +49,14 @@ class Fresh extends QueuedInterceptor with FreshMixin { /// ), /// ); /// ``` - static Fresh oAuth2({ - required TokenStorage tokenStorage, - required RefreshToken refreshToken, + static Fresh oAuth2({ + required TokenStorage tokenStorage, + required RefreshToken refreshToken, ShouldRefresh? shouldRefresh, Dio? httpClient, - TokenHeaderBuilder? tokenHeader, + TokenHeaderBuilder? tokenHeader, }) { - return Fresh( + return Fresh( refreshToken: refreshToken, tokenStorage: tokenStorage, shouldRefresh: shouldRefresh,