Welcome to the Kinde community

Updated 8 months ago

[Nuxt] callback URLs independent of the project base URL

Hello, I'm working on cloudflare pages, and it creates a website with a brach name. I am wondering if it is possible to add callback URLs independent of the project base URL in the environment file
https://discord.com/channels/1070212618549219328/1217312698694631425
D
S
E
16 comments
Hi, could you expand on what you mean please and what you're trying to achieve?
use the regular *.pages.dev subdomain
it should be [deployment].[project].pages.dev
and [project].pages.dev is the latest deployment
so if you’re testing if auth works on the most recent push/updated code, you should be able to use [project].pages.dev/[callback] url
NUXT_KINDE_REDIRECT_URL=https://[deployment].[project].pages.devapi/callback NUXT_KINDE_LOGOUT_REDIRECT_URL=https://[deployment].[project].pages.dev NUXT_KINDE_POST_LOGIN_REDIRECT_URL=https://[deployment].[project].pages.dev/dashboard
Thanks @quacksire , are they placeholders which are set automatically on cloudflare side ?
that is definitely not what I meant
@Daniel_Kinde In test environments, we need to test each branch/instance separately. that's why when we login, kinde should redirect the current instance
@quacksire I don't want to set exact domain/subdomain, it should understand itself which redirect_url belongs to it.
...thats not how things work
and is a serious security issue
I will this one in preview mode, not production mode.
So you're wanting the redirect URL used by the Kinde Module to be dynamic based on the origin? I can see it will be specific enough to know its coming from your app.
Add a reply
Sign up and join the conversation on Discord