How to refresh the access token and refresh token

Hi,

I am trying to refresh the tokens but i am getting below error

refreshed_token = $dwolla.auths.refresh(expired_token)

error : TypeError: no implicit conversion of Symbol into Integer

Can anyone please help me to fix this.

Thanks

@Prakash_S_L,

It looks you just need to do $dwolla.auths.refresh(refresh_token: 'eiGf8wV4OzXWoaKL5CI9wJ7f5NWysOwCGzUJNgNoXx23ROXOD9') or pass it the token object that you want to refresh.

Thanks it works fine now.

1 Like