Skip to content

Commit

Permalink
Remove WMTPACUtils Keys from docs and add description of topt format …
Browse files Browse the repository at this point in the history
…in JWT/query
  • Loading branch information
Hopsaheysa committed Nov 29, 2023
1 parent f6e3f2c commit 16f4525
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/Using-Operations-Service.md
Original file line number Diff line number Diff line change
Expand Up @@ -633,19 +633,17 @@ When authorization, the SDK will by default add `timestampSigned` to the `WMTPro

/// Time-based one time password used for Proximity antifraud check
public let totp: String?

public enum Keys: String, CodingKey {
case totp = "potp"
case operationId = "oid"
}
}
```

- two methods are provided:
- `parseDeeplink(url: URL) -> WMTPACData?` - uri is expected to be in format `"scheme://code=$JWT"` or `scheme://operation?oid=5b753d0d-d59a-49b7-bec4-eae258566dbb&potp=12345678}`
- `parseQRCode(code: String) -> WMTPACData?` - code is to be expected in the same format as deeplink formats or as a plain JWT
- mentioned JWT should be in format `{“typ”:”JWT”, “alg”:”none”}.{“oid”:5b753d0d-d59a-49b7-bec4-eae258566dbb”, “potp”:12345678”} `


- Accepted formats:
- notice that totp key in JWT and in query shall be `potp`!

## Error handling

Every error produced by the Operations Service is of a `WMTError` type. For more information see detailed [error handling documentation](Error-Handling.md).

0 comments on commit 16f4525

Please sign in to comment.