Closed eerive closed 3 months ago
Just a small update, I dived into the backend code and it seems like that the request body does not make any sense whatsoever. It wants an application/json
as header but with only a string as body, so it might be a backend issue from our side.
Describe the feature
Hi, I am trying to integrate this package into our product, which works wonderfully for the initial authorization with our custom backend. The only thing that is giving me a headache right now is the
refresh
method, as I can't figure out how to 'unset' therefreshRequestTokenPointer
.The case is, the backend I use requires:
while the logic of
refreshRequestTokenPointer
requires some value to be set, else it will default to/refreshToken
. And setting an empty value will throw an error that it's not allowed.Is there some way that I can still do it? I can request a change in the backend so it requires a format like
{ refreshToken: <token> }
but that would be a breaking change.How would you implement this?
Add or change the
length == 0
behaviour like:or by setting
refreshRequestTokenPointer: '.'
, it will return the value directly?Additional information
Provider