Oauth2AccessToken

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

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, refreshToken: String, refreshTokenExpiredIn: Int)

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.

Link copied to clipboard

The number of seconds until the refresh token expires.

Link copied to clipboard

The scope of access granted by the token.

Link copied to clipboard

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