Skip to content

Commit 373da25

Browse files
committed
chore: update documentation
1 parent 2792763 commit 373da25

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ These parameters are overrideable in every platform
229229

230230
| parameter | default | required | description | since |
231231
| ------------------ | ------- | -------- | ---------------------------------------------------------------------------------------------- | ----- |
232-
| customHandlerClass | | | Provide a class name implementing `CapacitorCommunityGenericOauth2.OAuth2CustomHandler` | |
232+
| customHandlerClass | | | Provide a class name implementing `GenericOAuth2Plugin.OAuth2CustomHandler` | |
233233
| siwaUseScope | | | SiWA default scope is `name email` if you want to use the configured one set this param `true` | 2.1.0 |
234234

235235
#### refreshToken()
@@ -410,7 +410,7 @@ This plugin should be as generic as possible, so I don't want to include provide
410410

411411
Therefore, I created a mechanism which let developers integrate custom SDK features in this plugin.
412412
Simply configure the class name in the option property `ios.customHandlerClass`.
413-
This class has to implement `CapacitorCommunityGenericOauth2.OAuth2CustomHandler`.
413+
This class has to implement `GenericOAuth2Plugin.OAuth2CustomHandler`.
414414

415415
Refer to the [Facebook example below](#facebook) for a reference implementation.
416416

@@ -1080,7 +1080,7 @@ import Foundation
10801080
import FacebookCore
10811081
import FacebookLogin
10821082
import Capacitor
1083-
import CapacitorCommunityGenericOauth2
1083+
import GenericOAuth2Plugin
10841084

10851085
@objc class YourIOsFacebookOAuth2Handler: NSObject, OAuth2CustomHandler {
10861086

src/definitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export interface IosOptions extends OAuth2AuthenticateBaseOptions {
184184
/**
185185
* Some oauth provider especially Facebook forces us to use their SDK for apps.
186186
*
187-
* Provide a class name implementing the 'CapacitorCommunityGenericOAuth2.OAuth2CustomHandler' protocol.
187+
* Provide a class name implementing the 'GenericOAuth2Plugin.OAuth2CustomHandler' protocol.
188188
*/
189189
customHandlerClass?: string;
190190
}

0 commit comments

Comments
 (0)