Viincenttt / MollieApi

This project allows you to easily add the Mollie payment provider to your application.
MIT License
150 stars 85 forks source link

Refresh token #255

Closed sebastianbouckaert closed 3 years ago

sebastianbouckaert commented 3 years ago

The method to refresh the token does not seems to be implemented correctly? It does does not return an object but a Task ?

Viincenttt commented 3 years ago

Hi @sebastianbouckaert ,

The GetAccessTokenAsync of the ConnectClient allows you to refresh a token by passing in the RefreshToken parameter on the TokenRequest class. It returns an object of type Task<TokenResponse>.

The RevokeTokenAsync which returns a Task can only be used to revoke a token.

Kind regards, Vincent

DianaLaa commented 2 years ago

There might be something missing here. The TokenRequest class has a constructor that takes code and redirectUri. The property GrantType and RefreshToken cannot be assigned to. (Version 2.1.0.9)

Can the TokenRequest class be extended with a constructor to set grantType and refreshToken?