Sha256: 3da3cfc194cfc5f672cd93f3b08abf24bbd82b665fb9ffa03944c662a3986fa5
Contents?: true
Size: 649 Bytes
Versions: 3
Compression:
Stored size: 649 Bytes
Contents
module OAuth2 class BungieAccessToken < AccessToken # Updated refreshing method for a special bungie page def refresh!(params = {}) raise('A refresh_token is not available') unless refresh_token params[:client_id] = @client.id params[:client_secret] = @client.secret params[:grant_type] = 'refresh_token' params[:refresh_token] = refresh_token params[:refreshToken] = params[:refresh_token] new_token = @client.get_token_with_refresh(params) new_token.options = options new_token.refresh_token = refresh_token unless new_token.refresh_token new_token end end end
Version data entries
3 entries across 3 versions & 1 rubygems