Skip to content

Commit

Permalink
Merge pull request #536 from Web3Auth/additionalParams
Browse files Browse the repository at this point in the history
fix extraloginOptions
  • Loading branch information
shahbaz17 authored Nov 15, 2023
2 parents be7bef5 + 84221a8 commit eb621b2
Showing 1 changed file with 39 additions and 37 deletions.
76 changes: 39 additions & 37 deletions docs/sdk/pnp/ios/usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -262,49 +262,51 @@ Web3Auth.login(W3ALoginParams(

<TabItem value="table">

| Parameter | Type | Mandatory | Description |
| ------------------------- | -------- | --------- | ----------------------------------------------------- |
| domain | String? | No | Domain of the app |
| client_id | String? | No | client_id from Web3Auth Dashboard |
| leeway | Int? | No | leeway |
| verifierIdField | String? | No | verifierIdField |
| isVerifierIdCaseSensitive | Boolean? | No | Boolean to confirm the case sensitivity of VerifierId |
| display | Display? | No | Display |
| prompt | Prompt? | No | Prompt |
| max_age | String? | No | max_age |
| ui_locales | String? | No | ui_locales to be shown on the modal |
| id_token_hint | String? | No | Previously issued ID Token. |
| id_token | String? | No | JWT (ID Token) to be passed for Login. |
| login_hint | String? | No | Email used for EMAIL_PASSWORDLESS |
| acr_values | String? | No | acc_values |
| scope | String? | No | scope |
| audience | String? | No | audience |
| connection | String? | No | connection |
| redirect_uri | String? | No | redirect_uri |
| Parameter | Type | Mandatory | Description |
| ------------------------- | ------------------ | --------- | ---------------------------------------------------------------------- |
| domain | String? | No | Domain of the app |
| client_id | String? | No | client_id from Web3Auth Dashboard |
| leeway | Int? | No | The value in seconds used to account for clock skew in JWT expirations |
| verifierIdField | String? | No | The field in the jwt token that maps to the verifier id. |
| isVerifierIdCaseSensitive | Boolean? | No | Whether the verifier id field is case sensitive |
| display | Display? | No | Display |
| prompt | Prompt? | No | Prompt |
| max_age | String? | No | max_age |
| ui_locales | String? | No | ui_locales to be shown on the modal |
| id_token_hint | String? | No | Previously issued ID Token. |
| id_token | String? | No | JWT (ID Token) to be passed for Login. |
| login_hint | String? | No | Email used for EMAIL_PASSWORDLESS |
| acr_values | String? | No | acc_values |
| scope | String? | No | scope |
| audience | String? | No | audience |
| connection | String? | No | connection |
| redirect_uri | String? | No | redirect_uri |
| additionalParams | [String : String]? | No | additonal parameters |

</TabItem>

<TabItem value="struct">

```swift
public struct ExtraLoginOptions: Encodable {
let display: String?
let prompt: String?
let max_age: String?
let ui_locales: String?
let id_token_hint: String?
let id_token: String?
let login_hint: String?
let acr_values: String?
let scope: String?
let audience: String?
let connection: String?
let domain: String?
let client_id: String?
let redirect_uri: String?
let leeway: Int?
let verifierIdField: String?
let isVerifierIdCaseSensitive: Bool?
public struct ExtraLoginOptions: Codable{
let display: String?
let prompt: String?
let max_age: String?
let ui_locales: String?
let id_token_hint: String?
let id_token: String?
let login_hint: String?
let acr_values: String?
let scope: String?
let audience: String?
let connection: String?
let domain: String?
let client_id: String?
let redirect_uri: String?
let leeway: Int?
let verifierIdField: String?
let isVerifierIdCaseSensitive: Bool?
let additionalParams: [String : String]?
}
```

Expand Down

1 comment on commit eb621b2

@vercel
Copy link

@vercel vercel bot commented on eb621b2 Nov 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

web3auth-docs – ./

web3auth-docs-web3auth.vercel.app
web3auth-docs-git-master-web3auth.vercel.app
w3a-docs.vercel.app

Please sign in to comment.