Class JwtDecoder
Namespace: XboxAuthNet.Game.Jwt
Assembly: XboxAuthNet.Game.dll
public static class JwtDecoder
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
DecodePayload<T>(string)
decode jwt payload and deserialize
public static T? DecodePayload<T>(string jwt) where T : class
Parameters
jwt string
Returns
T?
deserialized object of jwt payload
Type Parameters
T
Exceptions
invalid jwt
DecodePayloadString(string)
decode jwt payload
public static string DecodePayloadString(string jwt)
Parameters
jwt string
entire jwt
Returns
decoded jwt payload
Exceptions
invalid jwt