oauth2_client
Flutter library for interacting with OAuth2 servers, with classes for transparent authorized requests, secure token storage, automatic token refreshing.
4.3.3
30K downloads/mo
#1857 most downloaded on pub.dev
ThexXTURBOXx/oauth2_client
What this package is like to depend on
Last release 11 days ago
12 Aug 2026
Release timing varies
gaps range from 8 days to 10 months
Nearly every release is documented
notes for 64 of 64 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
68 releases · first in 2020
12 releases in the last 12 months
see the full history below
Release timeline
68 releases · Mar 2020 to Aug 2026
2021
2022
2023
2024
2025
2026
Releases
latest 60 of 68-
5.0.0-alpha.212 Aug 2026 pre-releaseRelease notes
Open source →[5.0.0-alpha.2] - 2026/08/12
- Securely generate larger parameters
- Update some documentation
-
5.0.0-alpha.107 Aug 2026 pre-release -
5.0.0-alpha.015 May 2026 pre-releaseRelease notes
Open source →[5.0.0-alpha.0] - 2026/05/15
- Update
flutter_web_auth_2to6.xalpha - Remove dedicated web auth flow - instead, delegate everything to
flutter_web_auth_2
Release notes
Open source →- Update
flutter_web_auth_2to6.xalpha - Remove dedicated web auth flow - instead, delegate everything to
flutter_web_auth_2
- Update
-
4.3.307 Aug 2026 -
4.3.207 May 2026 -
4.3.123 Apr 2026Release notes
Open source →[4.3.1] - 2026/04/23
- Cleanup token handling
- Improve even more error messages
-
4.3.022 Apr 2026Release notes
Open source →[4.3.0] - 2026/04/22
- Allow specifying a default http client in
OAuth2Helper - Allow specifying a dedicated http client in more functions
Release notes
Open source →- Allow specifying a default http client in
OAuth2Helper - Allow specifying a dedicated http client in more functions
- Allow specifying a default http client in
-
4.2.520 Apr 2026Release notes
Open source →[4.2.5] - 2026/04/20
- Catch
invalid_requesterrors inrefreshToken(see also #13)
- Catch
-
4.2.401 Apr 2026 -
4.2.313 Jan 2026 -
4.2.214 Dec 2025 -
4.2.127 Nov 2025Release notes
Open source →- Update dependency constraints
- Update and fix lints
- Remove unnecessary dependency on
metapackage
-
4.2.030 Apr 2025 -
4.1.012 Mar 2025Release notes
Open source →- Add TikTok OAuth 2.0 client
- Fix example
- Fix issues with HTTP
Content-Typeheaders using a dirty workaround
-
4.0.109 Mar 2025Release notes
Open source →- Update documentation properly
- Fix a few typos here and there
- Allow changing the client ID and client secret key names
-
4.0.009 Mar 2025Release notes
Open source →- This package changed maintainer (to ThexXTURBOXx)
- Updated Dart SDK requirement to
>=3.5.0(it is the most common nowadays and basically required) - Updated all dependencies (with breaking changes!)
- Migrate to
weband add WASM support - Allow
sendHTTP requests
-
3.3.003 Jul 2024Release notes
Open source →- Updated dependencies
- Fix: Check for null value before casting scope to String (thanks xolf)
- Fix: Added support for the preferEphemeral behavior on android (thanks dlatikaynen)
-
3.2.227 Aug 2023Release notes
Open source →- Updated dependencies (thanks Jason Held)
- Fix for LinkedInOAuth2Client client (thanks Abhishek-Khanal)
-
3.2.112 Mar 2023 -
3.2.012 Mar 2023 -
3.1.026 Jan 2023 -
3.0.020 Sep 2022Release notes
Open source →- Migrated to
flutter_web_auth_2(thanks ThexXTURBOXx & Piotr Mitkowski). - Migrated to
flutter_lints(thanks ThexXTURBOXx). - Updated
flutter_secure_storage - Constants are now in lowerCamelCase
- Removed the
OAuth2Client.accessTokenRequestHeadersclass field. Use the propergetTokenWithAuthCodeFlow/getTokenWithClientCredentialsFlowparameters instead (see upgrading notes in the README).
- Migrated to
-
2.4.216 Aug 2022 -
2.4.117 Jul 2022Release notes
Open source →- Fix accessing secure token storage on newer Android versions (thanks Piotr Mitkowski).
- Added custom params handling for Implicit grant flow (thanks qasim90)
-
2.4.003 May 2022Release notes
Open source →- Fix for token renewal process through the refresh token flow
- Expose the TokenStorage class
-
2.3.314 Mar 2022Release notes
Open source →- Expose the BaseStorage object (thanks Jon Salmon)
- Improved documentation for android Manifest modification (thanks supermar1010)
- Update flutter_web_auth dependency
-
2.3.217 Jan 2022 -
2.3.113 Dec 2021 -
2.3.003 Nov 2021Release notes
Open source →- Add Spotify client (thanks mauriciocartagena)
- Allow passing custom WebAuth class to OAuth2Helper (thanks Jon Salmon)
-
2.2.707 Oct 2021 -
2.2.603 Oct 2021 -
2.2.529 Sep 2021 -
2.2.428 Sep 2021Release notes
Open source →- Support ephemeral sessions (thanks ThexXTURBOXx)
- Fixes (URI components encoding)
-
2.2.227 Jun 2021 -
2.2.123 Jun 2021Release notes
Open source →- Fixes (incorrect scope handling with implicit grant, send empty client secret if specified)
- Added Reddit client (thanks lavalleeale)
-
2.2.029 May 2021 -
2.1.015 Apr 2021Release notes
Open source →- AccessTokenResponse refactorization. It is now possible to retrieve custom response fields through the
getRespFieldmethod - Scopes separator can be configured with the OAuth2Client's
scopeSeparatorparam
- AccessTokenResponse refactorization. It is now possible to retrieve custom response fields through the
-
2.0.106 Apr 2021 -
2.0.0-nullsafety30 Mar 2021 pre-releaseRelease notes
Open source →- Migration to null safety
- Deprecated OAuth2Helper.setAuthorizationParams method
-
1.8.028 Mar 2021 -
1.7.125 Feb 2021 -
1.7.024 Feb 2021 -
1.6.231 Jan 2021Release notes
Open source →- Allows iOS token reading from storage when invoked in background task
- Small fixes
-
1.6.129 Oct 2020 -
1.6.013 Oct 2020Release notes
Open source →- Added "delete" request method to helper class
- OAuth requests refactorization
- Fixes (fallback token_type parameter value)
-
1.5.115 Sep 2020 -
1.5.012 Sep 2020 -
1.4.603 Sep 2020 -
1.4.523 Aug 2020 -
1.4.410 Aug 2020 -
1.4.309 Jul 2020 -
1.4.227 Jun 2020 -
1.4.119 Jun 2020 -
1.4.017 Jun 2020Release notes
Open source →- scopes parameter become ooptional (as per the OAuth2 specs)
- custom query parameters sent back from the authorization code response can now be retrieved throught the AuthorizationCode.getQueryParam method
- added afterAuthorizationCodeCb callback to handle use cases for access token requests
- added custom params handling to the Authorization Code and the Access Token Requests
-
1.3.208 Jun 2020 -
1.3.105 Jun 2020Release notes
Open source →- Handled situations in which no new refresh token is returned upon a refresh flow.
-
1.3.026 May 2020Release notes
Open source →- Added revocation token ("logout") process
- Refresh token flow is more spec compliant
- Updated dependencies
-
1.2.410 May 2020 -
1.2.307 May 2020 -
1.2.203 May 2020