nuxt-modules / kinde

Kinde integration for Nuxt
72 stars 7 forks source link

Post Registration URL #167

Open DevEnable opened 2 weeks ago

DevEnable commented 2 weeks ago

Right now it doesn't look like there is a way to redirect users after they have registered through Kinde to a specific URL. This would be desirable to continue with the onboarding process in a specific URL. It looks like users just get redirected to the default callback URL.

I did try to use the following code in my component, but it doesn't redirect to /registration/register-service-provider after the user successfully registers via Kinde. I'm guessing because post_login_redirect_url is for logging in only?

<RegisterLink post_login_redirect_url="/registration/register-service-provider" :is_create_org="false">
            <v-btn>Register</v-btn>
        </RegisterLink>

My current workaround is to store some data in the user's local storage and trigger a redirect via Vue when certain conditions are met. But this is a bit messy as the redirect is noticeable in a browser.