mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-29 07:07:42 +00:00
Use old refresh token if new one is missing
This commit is contained in:
parent
fb6f7751ae
commit
893e5bd5a3
1 changed files with 7 additions and 2 deletions
|
@ -161,8 +161,13 @@ func (rac *AuthenticatedClient) RefreshTokens() (*RefreshTokenResponse, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
fmt.Println(rtr)
|
|
||||||
return rtr.(*RefreshTokenResponse), nil
|
ret := rtr.(*RefreshTokenResponse)
|
||||||
|
if ret.RefreshToken == "" {
|
||||||
|
ret.RefreshToken = rac.refreshToken
|
||||||
|
}
|
||||||
|
|
||||||
|
return ret, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (rac *AuthenticatedClient) MessageInbox(opts ...RequestOption) (*ListingResponse, error) {
|
func (rac *AuthenticatedClient) MessageInbox(opts ...RequestOption) (*ListingResponse, error) {
|
||||||
|
|
Loading…
Reference in a new issue