@William Zorn, Welcome to Microsoft Q&A,
The first one complains that "JsonSerializer" does not exist in the context and "JsonElement" couldn't be found.
For your first error, please install nuget-package System.Text.Json
and don't forget to add the using statement on the left-top of your code using System.Text.Json;
.
The second has "System.IdentityModel.Tokens.Jwt" does not exist in the namespace.
For your second error, I think you have already done for it (install nuget-package System.IdentityModel.Tokens.Jwt).
The following is my result, which does not have the compiling error:
Hope my solution could help you.
Best Regards,
Jack
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.