Welcome to the Kinde community.

P
K
A
A
A

Seamlessly integrating a separate marketing and application site

I have a bit of a weird setup in mind, might be looking for some guidance if possible.

Currently, I have two separate subdomains:
https://example.com - Astro.build site
https://app.example.com - Next.js app

I want to have my login/register buttons on the Astro site.
When a user logs in from the Astro site, they should be redirected to https://app.example.com/dashboard
When a user logs out from the dashboard, they should be redirected back to https://example.com

I think I have most of it working (I can login/register on the astro page), I'm just not sure how to set a postLoginRedirectUrl for the typescript sdk to redirect to the next app once i've logged in
J
S
O
18 comments
I'm realising now that I should have probably should have done it all in next.js with ssg for the "marketing" pages but I'm too far in now
just have it on the nextjs app
just like cloudflare
I considered it but didn't end up going that way
I mean... there's a sign up/log in button
Attachment
image.png
They'd have their platform on the same subdomain right?
the main app is on dash.cloudflare.com
basically they do it the same way you kinda want to do it
Oh it is separate, okay
Wait so I'm confused then, what are you suggesting?
Oh the login button just redirects to dash.cloudflare.com/login and the auth is handled on the dashboard side, I see what you mean
Managed to dicipher what you were saying lol
But yeah I think that'll work well, thanks for the suggestion @quacksire
ps. rip cloudflare
Attachment
image.png
Hey @MALEV0L3NT,
Sounds like @quacksire helped you solve your case.
If you are still experiencing issues, please don't hesitate to reach out.
Hey Oli, thanks for checking, quacksire did help me come up with a solution that has since been implemented πŸ™‚
Awesome, thanks for the quick reply.
And kudos to @quacksire, you are making our lives easier.
Add a reply
Sign up and join the conversation on Discord
Join