Skip to content

Commit

Permalink
fix(oauth2 scheme): remove deprecated name from refresh token request
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoPedroAS51 committed Oct 17, 2020
1 parent f650fc7 commit d980279
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/schemes/oauth2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ const DEFAULTS = {

export default class Oauth2Scheme extends BaseScheme<typeof DEFAULTS> {
public req
public name
public token: Token
public refreshToken: RefreshToken
public refreshController: RefreshController
Expand Down Expand Up @@ -377,7 +376,7 @@ export default class Oauth2Scheme extends BaseScheme<typeof DEFAULTS> {
// Delete current token from the request header before refreshing
this.requestHandler.clearHeader()

const response = await this.$auth.request(this.name, {
const response = await this.$auth.request({
method: 'post',
url: this.options.endpoints.token,
data: encodeQuery({
Expand Down

0 comments on commit d980279

Please sign in to comment.