nuxt-modules / nuxt-modules/kinde

Post Registration URL

Open
#167 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
91
Forks
8
Avg merge
5h 5m
Merged PRs (30d)
18

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the RegisterLink component and its handling of post_login_redirect_url, then compare the registration flow with the login flow. Reproduce registration using /registration/register-service-provider and verify that the requested URL is used after successful registration instead of the default callback URL.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
authentication
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.