The type of the payload to return, so user code can validate
additional claims. Should extend JsonWebSignature.Payload. Payload information will be deserialized
using Instance.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eJsonWebSignature\u003c/code\u003e class provides an implementation of JSON Web Signature (JWS) as defined in the IETF draft specification.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this class is version 1.69.0, with previous versions including 1.68.0, 1.60.0, 1.59.0, 1.55.0, and 1.50.0 available.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eVerifySignedTokenAsync\u003c/code\u003e methods are used to verify the validity and expiration of a given signed token.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVerifySignedTokenAsync\u003c/code\u003e method can return the payload of the token either as a \u003ccode\u003eJsonWebSignature.Payload\u003c/code\u003e or as a custom \u003ccode\u003eTPayload\u003c/code\u003e type that extends \u003ccode\u003eJsonWebSignature.Payload\u003c/code\u003e for more specific claim validation.\u003c/p\u003e\n"],["\u003cp\u003eBoth \u003ccode\u003eVerifySignedTokenAsync\u003c/code\u003e methods may throw an \u003ccode\u003eInvalidJwtException\u003c/code\u003e if the token being verified is invalid or expired.\u003c/p\u003e\n"]]],[],null,["# Class JsonWebSignature (1.69.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.69.0 (latest)](/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth.JsonWebSignature)\n- [1.68.0](/dotnet/docs/reference/Google.Apis/1.68.0/Google.Apis.Auth.JsonWebSignature)\n- [1.60.0](/dotnet/docs/reference/Google.Apis/1.60.0/Google.Apis.Auth.JsonWebSignature)\n- [1.59.0](/dotnet/docs/reference/Google.Apis/1.59.0/Google.Apis.Auth.JsonWebSignature)\n- [1.55.0](/dotnet/docs/reference/Google.Apis/1.55.0/Google.Apis.Auth.JsonWebSignature)\n- [1.50.0](/dotnet/docs/reference/Google.Apis/1.50.0/Google.Apis.Auth.JsonWebSignature) \n\n public class JsonWebSignature\n\nJSON Web Signature (JWS) implementation as specified in\n\u003chttp://tools.ietf.org/html/draft-ietf-jose-json-web-signature-11\u003e. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e JsonWebSignature \n\nInherited Members\n-----------------\n\n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) \n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Apis.Auth](/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Auth)\n\nAssembly\n--------\n\nGoogle.Apis.Auth.dll\n\nMethods\n-------\n\n### VerifySignedTokenAsync(string, SignedTokenVerificationOptions, CancellationToken)\n\n public static Task\u003cJsonWebSignature.Payload\u003e VerifySignedTokenAsync(string signedJwt, SignedTokenVerificationOptions options = null, CancellationToken cancellationToken = default)\n\nVerifies that the given token is a valid, not expired, signed token.\n\n### VerifySignedTokenAsync\\\u003cTPayload\\\u003e(string, SignedTokenVerificationOptions, CancellationToken)\n\n public static Task\u003cTPayload\u003e VerifySignedTokenAsync\u003cTPayload\u003e(string signedJwt, SignedTokenVerificationOptions options = null, CancellationToken cancellationToken = default) where TPayload : JsonWebSignature.Payload\n\nVerifies that the given token is a valid, not expired, signed token.\n\nExtension Method\n----------------\n\n[Utilities.ThrowIfNull\\\u003cT\\\u003e(T, string)](/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Util.Utilities#Google_Apis_Util_Utilities_ThrowIfNull__1___0_System_String_)"]]