callback_fn was not returning the refresh token in AuthCodeSpotify, so I simply moved the token.refresh_token = Some(refresh_token.to_string()); above the callback_fn directive to solve this problem.
Motivation and Context
Refresh token was not being returned after refetch_token was called.
Type of change
Please delete options that are not relevant.
[x] Bug fix (non-breaking change which fixes an issue)
How has this been tested?
I used it in my project and it does work. It is a two line
Description
callback_fn
was not returning the refresh token inAuthCodeSpotify
, so I simply moved thetoken.refresh_token = Some(refresh_token.to_string());
above thecallback_fn
directive to solve this problem.Motivation and Context
Refresh token was not being returned after
refetch_token
was called.Type of change
Please delete options that are not relevant.
How has this been tested?
I used it in my project and it does work. It is a two line
Is this change properly documented?
I figure this can be done once the PR is in.
Thanks for the great library!