Hi
I have being implementing Auth0 for past 2 months in both Nuxt3 SSR and VUE SPA.
Nuxt3 SSR - is complemented using Proof Key for Code Exchange (PKCE) Flow
But for our VUE SPA app we decided to use auth0-vue. The problem I am facing is with callback url.
App is running using history “Hash“ and when I trigger /authorize by passing callback “test-admin.xyz.dk/#/auth/callback“ and after successful login redirect, user gets redirect to test-admin.xyz.dk?code= where as it should redirect to test-admin.xyz.dk/#/auth/callback?code=
Then I found following information
- Use redirect_uri without hash fragment
OAuth2/OIDC providers do not support hash fragments in the redirect_uri. The hash is never sent to the server, so Auth0 cannot redirect you back to a hash route.
And after changing history from hash to path-based, redirect works.
And that make me to change out app navigation flow, is there a way to make callback work with hash?
I hope there is a solution for this issue.