Skip to main content

JsonWebTokenPair

The JsonWebTokenPair class represents the JWT token pair returned by the GoCardless API.

Properties​

AccessToken - JsonWebToken​

The JWT access token returned by the GoCardless API.

RefreshToken - JsonWebToken​

The JWT refresh token returned by the GoCardless API.

AccessExpires - int​

Indicates the time in seconds after which the access token expires.

RefreshExpires - int​

Indicates the time in seconds after which the access token expires.

Constructors​

public JsonWebTokenPair(JsonWebToken accessToken, JsonWebToken refreshToken,
int accessExpires, int refreshExpires)

Parameters​

accessToken - JsonWebToken​

The JWT access token returned by the GoCardless API.

refreshToken - JsonWebToken​

The JWT refresh token returned by the GoCardless API.

accessExpires - int​

Indicates the time in seconds after which the access token expires.

refreshExpires - int​

Indicates the time in seconds after which the access token expires.

public JsonWebTokenPair(string accessToken, string refreshToken)

Parameters​

accessToken - JsonWebToken​

The JWT access token returned by the GoCardless API.

refreshToken - JsonWebToken​

The JWT refresh token returned by the GoCardless API.