nordigen / nordigen-python

Python library for the Nordigen API.
MIT License
56 stars 18 forks source link

exchange_token doesn't return correct information #18

Closed Robin-Dillen closed 1 year ago

Robin-Dillen commented 1 year ago

Describe the bug When calling the exchange token function, it only returns the new access token and access expiration date, and not the refresh token as said in the docstring.

To Reproduce Steps to reproduce the behavior:

  1. Create Nordigen client
  2. call client.exchange_token

Expected behavior I expected to receive a new TokenType with a new access and refresh token in it

victory-sokolov commented 1 year ago

Hello, actually refresh token endpoint, doesn't return new refresh_token, it only returns access_token, sorry for misleading docstring.

Your refresh_token will be valid for the 30 days