2 using System.Threading.Tasks;
8 public override async Task<AccountInfo>
VerifyTicket(AuthenticationTicket ticket)
10 var jwtOption = JsonWebToken.Parse(Encoding.UTF8.GetString(ticket.Data.AsSpan()));
12 if (!jwtOption.TryUnwrap(out var jwt)) {
return AccountInfo.None; }
13 var ownershipToken =
new EosInterface.Ownership.Token(jwt);
14 var accountIdOption = await ownershipToken.Verify();
16 if (!accountIdOption.TryUnwrap(out var accountId)) {
return AccountInfo.None; }
17 return new AccountInfo(accountId);
override void EndAuthSession(AccountId accountId)
override async Task< AccountInfo > VerifyTicket(AuthenticationTicket ticket)