Table of Contents

Class JwtDecoder

Namespace: XboxAuthNet.Game.Jwt
Assembly: XboxAuthNet.Game.dll

public static class JwtDecoder

Inheritance

objectJwtDecoder

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

ArgumentNullException

FormatException

invalid jwt

DecodePayloadString(string)

decode jwt payload

public static string DecodePayloadString(string jwt)

Parameters

jwt string

entire jwt

Returns

string

decoded jwt payload

Exceptions

ArgumentNullException

FormatException

invalid jwt