Skip to content

Commit

Permalink
Fixed deeplink parsing (#113)
Browse files Browse the repository at this point in the history
* Return data when parsing is succesful

* Fix `totp` name to `potp`

* Bump version
  • Loading branch information
Hopsaheysa authored Nov 27, 2023
1 parent 6e21766 commit ac6fd21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
# and limitations under the License.
#

VERSION_NAME=1.6.1-SNAPSHOT
VERSION_NAME=1.7.1
GROUP_ID=com.wultra.android.mtokensdk
ARTIFACT_ID=wultra-mtoken-sdk
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class TOTPUtils {
data class OperationTOTPData(

/** The ID of the operations associated with the TOTP */
@SerializedName("potp")
val totp: String,

/** The actual Time-based one time password */
Expand All @@ -49,7 +50,7 @@ class TOTPUtils {
}

queryItems["code"]?.let {
parseJWT(it)
return parseJWT(it)
} ?: run {
Logger.e("Failed to parse deeplink. Key `code` not found")
}
Expand Down

0 comments on commit ac6fd21

Please sign in to comment.