Skip to content

Commit

Permalink
Add ZK Login SDK Address
Browse files Browse the repository at this point in the history
  • Loading branch information
kPatch committed Nov 15, 2024
1 parent c194799 commit 050075f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Assets/Sui-Unity-SDK/Code/Sui.ZKLogin/SDK/Address.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
using System.Numerics;
using System.Security.Cryptography;
using System.Text;
using Jose;

using OpenDive.Utils.Jwt;

namespace Sui.ZKLogin.SDK
{
Expand Down Expand Up @@ -48,7 +47,7 @@ public static string JwtToAddress(string jwt, string userSalt)
{
LengthChecks(jwt);

var payload = JWT.Decode<JwtPayload>(jwt);
var payload = JwtDecoder.DecodeJwt(jwt);
if (string.IsNullOrEmpty(payload.Sub) || string.IsNullOrEmpty(payload.Iss) || string.IsNullOrEmpty(payload.Aud))
throw new ArgumentException("Missing jwt data");

Expand Down

0 comments on commit 050075f

Please sign in to comment.