Skip to content

Releases: capacitor-community/generic-oauth2

6.1.0

01 Aug 08:58
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 6.0.0...6.1.0

6.0.0

03 May 09:32
d47ac35
Compare
Choose a tag to compare

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

5.0.0

03 Sep 18:13
Compare
Choose a tag to compare

See CHANGELOG for details.

4.0.2

11 Apr 18:02
Compare
Choose a tag to compare

See CHANGELOG for details.

4.0.1

11 Apr 12:32
Compare
Choose a tag to compare

See CHANGELOG for details.

4.0.0

18 Sep 19:40
Compare
Choose a tag to compare

See CHANGELOG for details.

Attention: Breaking Change: Minimum Capacitor version is now 4.0.0.

See the Capacitor upgrade guide: https://capacitorjs.com/docs/updating/4-0

3.0.1

13 Aug 19:56
Compare
Choose a tag to compare

See CHANGELOG for details.

3.0.0

02 Aug 13:44
1129cc9
Compare
Choose a tag to compare

See CHANGELOG for details.

Attention: Breaking Change: Minimum Capacitor version is now 3.0.0.

See the Capacitor upgrade guide: https://capacitorjs.com/docs/updating/3-0

2.1.0

27 Aug 13:29
Compare
Choose a tag to compare

Highlight

  • Sign in with Apple: Docs

See CHANGELOG for details.

2.0.0

20 Apr 14:09
Compare
Choose a tag to compare

Breaking Changes

  • Core: Capacitor 2.x is new minimum peer dependency. closes #80.
  • responseType is required. Default values were removed. In favor of configuring anything. closes #86.
  • pkceDisabled was replaced with pkceEnabled, which is NOT enabled by default. If you like to use PKCE set this to true.
  • If a flow must not have a accessTokenEndpoint but you configured one as base parameter you have to
    overwrite it in the according platform sections. accessTokenEndpoint: "" see Google example in README.
  • Add redirectUrl to base parameter and make it overwritable in the platform sections. closes #84.
    • Android: customScheme replaced by redirectUrl
    • iOS: customScheme replaced by redirectUrl
  • Additional method argument for OAuth2CustomHandler#logout. closes #58
    • Android: activity as 1st argument
    • iOS: viewController as 1st argument

See CHANGELOG for details.