Oauth2AccessToken

data class Oauth2AccessToken(var accessToken: String, var tokenType: String, var expiresIn: Int, var scope: String? = null, var refreshToken: String? = null, var refreshTokenExpiredIn: Int? = null)

This class represents the OAuth2 access token used for authentication with the MTN MOMO API.

Constructors

Link copied to clipboard
constructor(accessToken: String, tokenType: String, expiresIn: Int, scope: String? = null, refreshToken: String? = null, refreshTokenExpiredIn: Int? = null)

Properties

Link copied to clipboard

The access token string used to authenticate API requests.

Link copied to clipboard

The number of seconds until the access token expires (e.g. 3600 = 1 hour).

Link copied to clipboard

The token used to obtain a new access token when the current one expires. May be absent in some responses.

Link copied to clipboard

The number of seconds until the refresh token expires. May be absent in some responses.

Link copied to clipboard

The scope of access granted by the token. May be absent in some responses.

Link copied to clipboard

The type of the token (e.g., Bearer).