Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sagishm authored Aug 28, 2023
1 parent d2f46c0 commit 08d43d7
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions GigyaSwift/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Gigya.sharedInstance().initFor(apiKey: "YOUR-API-KEY", apiDomain: "YOUR-API-DOMA
```
### CNAME initialization

When using implicit initialization of the SDK, add the "cname" property to your app’s plist file.
When using implicit initialization of the SDK, add the "GigyaCname" property to your app’s plist file.

When using explicit initialization of the SDK, you can use the following method:
```swift
Expand Down Expand Up @@ -347,12 +347,18 @@ gigya.login(with: .facebook, viewController: self ) { [weak self] result in

## Configuring Native Login

For some social providers, the SDK supports social login via the social provider's native implementation.
For certain social providers, the SDK supports social login via the social providers native implementation.

It is done by using the provider's native SDK, so it will require you to add its required libraries and wrappers to your Swift project.
This is done by using the providers native SDK, so this method will require you to add its required libraries and wrappers to your Swift project.

We will review the relevant providers and their implementation flow.
As part of this implementation, you will need to add a wrapper class to your application corresponding to the social provider, which is responsible for initiating the correct provider flow to retrieve the required token/code. If you are not adding the wrappers to your main application bundle, use the following example method to register them so that the SDK will be able to identify them.

Example for registering the Apple social provider:
```
gigya.registerSocialProvider(of: .apple, wrapper: AppleSignInWrapper())
```

We will review the relevant providers and their implementation flow.

### Apple

Expand Down

0 comments on commit 08d43d7

Please sign in to comment.