Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(oauth2 scheme): unset baseURL in refreshTokens #939

Merged
merged 1 commit into from
Dec 17, 2020
Merged

fix(oauth2 scheme): unset baseURL in refreshTokens #939

merged 1 commit into from
Dec 17, 2020

Conversation

CS-Birb
Copy link
Contributor

@CS-Birb CS-Birb commented Dec 17, 2020

While _handleCallback has unset the baseURL when calling the token endpoint, refreshTokens currently uses the existing Axios baseURL.
This causes issues in cases where addAuthorize was used (i.e. the github strategy) as the new token endpoint becomes a relative URL pointing to the Nuxt server middleware.

@CS-Birb CS-Birb changed the title Fix: unset baseURL in OAuth2 refreshTokens fix: unset baseURL in OAuth2 refreshTokens Dec 17, 2020
While _handleCallback has unset the baseURL when calling the token endpoint, refreshTokens currently uses the existing Axios baseURL.
This causes issues in cases where addAuthorize was used (i.e. the github strategy) as the new token endpoint becomes a relative URL pointing to the Nuxt server middleware.
@JoaoPedroAS51
Copy link
Collaborator

Thank you for your PR! Nice work! 😃

@JoaoPedroAS51 JoaoPedroAS51 changed the title fix: unset baseURL in OAuth2 refreshTokens fix(oauth2 scheme): unset baseURL in refreshTokens Dec 17, 2020
@JoaoPedroAS51 JoaoPedroAS51 merged commit 05a2348 into nuxt-community:dev Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants