Skip to content

Commit

Permalink
fix: code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmelati committed Oct 16, 2024
1 parent a6c0705 commit 48ddd8a
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,15 @@ class CryptoPlatformCallback : ICryptoServiceCallbackJS {
val options: dynamic = js("({})")
options["currentDate"] = js("new Date(Date.parse(\"Aug 14, 2024 11:30:00\"))")

println(options);

Jose.jwtVerify(jwt, publicKey, options).then { verification: dynamic ->
println("Verification result: $verification")
verification != undefined
}.catch { error ->
println("Error during JWT verification: $error")
}.catch {
false
}
}.catch { error ->
println("Error importing JWK: $error")
}.catch {
false
}
} catch (e: Throwable) {
println("Error: $e")
Promise.resolve(false)
}
}
Expand Down

0 comments on commit 48ddd8a

Please sign in to comment.