Skip to content

6.0.0

Latest
Compare
Choose a tag to compare
@tafelnl tafelnl released this 03 May 09:32
· 2 commits to main since this release
d47ac35

What's Changed

New Contributors

Full Changelog: 5.0.0...6.0.0

Breaking changes

Important

This package moved from @byteowls/capacitor-oauth2 (by @moberwasserlechner) to @capacitor-community/generic-oauth2.

Previous users of the package @byteowls/capacitor-oauth2 are required to migrate to @capacitor-community/generic-oauth2 in order to receive continued support and updates.

Migration guide

1. Uninstall old package and install new package

npm uninstall @byteowls/capacitor-oauth2
npm install @capacitor-community/generic-oauth2
npx cap sync

2. Update imports and references in your web code

-import { OAuth2Client } from '@byteowls/capacitor-oauth2';
+import { GenericOAuth2 } from '@capacitor-community/generic-oauth2';
 
-OAuth2Client.authenticate();
+GenericOAuth2.authenticate();

Note

In case you implemented a Custom OAuth Handler, you need to follow step 3 and 4 as well

3. Update imports and references in your Android code

-import com.byteowls.capacitor.oauth2.handler.AccessTokenCallback;
-import com.byteowls.capacitor.oauth2.handler.OAuth2CustomHandler;
+import com.getcapacitor.community.genericoauth2.handler.AccessTokenCallback;
+import com.getcapacitor.community.genericoauth2.handler.OAuth2CustomHandler;

4. Update imports and references in your iOS code

-import ByteowlsCapacitorOauth2
+import CapacitorCommunityGenericOauth2