Joshkop
Joshkop
Explore posts from servers
KKinde
Created by Joshkop on 8/30/2024 in #💻┃support
Use callbacks_url with and without intl18 subdomains
Also the postLogoutRedirectUrl sadly doesnt work the same ass the postLogin one If I use for example "/de/" it throws an error
10 replies
KKinde
Created by Joshkop on 8/30/2024 in #💻┃support
Use callbacks_url with and without intl18 subdomains
Maybe add to the wildcard docs that this only is for the allowed redirects on kinde and not usable for the SDKs env variable Took me hours to find that out ^^
10 replies
KKinde
Created by Joshkop on 8/30/2024 in #💻┃support
Use callbacks_url with and without intl18 subdomains
It worked when setting the COOKI_DOMAIN to .domain with the dot I copied the validation as COOKIE_DOMAIN: z.string().url() from the redirect urls Which is why I couldnt get it to work ... took me way too long to find that I can now also use the following:
postLoginRedirectURL={`/${locale}/${pathName}`}>
postLoginRedirectURL={`/${locale}/${pathName}`}>
which correctly redirects them bag to the correct in18 subdomain
10 replies
KKinde
Created by Joshkop on 8/30/2024 in #💻┃support
Use callbacks_url with and without intl18 subdomains
No description
10 replies
KKinde
Created by Joshkop on 8/30/2024 in #💻┃support
Use callbacks_url with and without intl18 subdomains
Hmm even using different org_codes wouldnt work i guess since i cant edit the env vars post build Is there a way to set the full redirect url at runtime ?
10 replies
KKinde
Created by Joshkop on 8/30/2024 in #💻┃support
Use callbacks_url with and without intl18 subdomains
Oh i just saw that the docs for wildcards are probably only for the allowed list correct ? So theres no way to set the redirect url there to be able to use the subomains?
10 replies
KKinde
Created by Joshkop on 8/30/2024 in #💻┃support
Use callbacks_url with and without intl18 subdomains
wildcards in the allowed list have also been set obviously
10 replies
KKinde
Created by internetjohnny on 12/16/2023 in #💻┃support
Updating a User: changing email address
Nvm I think I found it I thought it would be on the users update but afaik it's creating a new identity and deleting the old one
5 replies
KKinde
Created by internetjohnny on 12/16/2023 in #💻┃support
Updating a User: changing email address
Idk if I should bring back this old post or just make a new one Is the changing of users email implemented yet? I can't find it on the management api
5 replies
KKinde
Created by Joshkop on 8/25/2024 in #💻┃support
Custom Sign In | React ref for LoginLink || login() function in NextJS SDK
Sry for the late supply Heres my current working solution:
// ...
const loginRef = useRef<HTMLButtonElement>(null)
// ...
<TextInput
label={"Email"}
type={"email"}
onChange={(e) => handleEmailLogin(e.currentTarget.value)}
error={error}
onKeyDown={(event) => {
console.log(event)
if (event.key === 'Enter' || event.key === 'NumpadEnter') {
loginRef.current?.querySelector("a")?.click()
}
}}
/>
<Button ref={loginRef}>
<LoginLink
className={styles.login}
authUrlParams={{
connection_id: env.NEXT_PUBLIC_KINDE_CONNECTION_EMAIL_PASSWORD,
login_hint: email
}}
>
{t("sign_in")}
</LoginLink>
</Button>
// ...
const loginRef = useRef<HTMLButtonElement>(null)
// ...
<TextInput
label={"Email"}
type={"email"}
onChange={(e) => handleEmailLogin(e.currentTarget.value)}
error={error}
onKeyDown={(event) => {
console.log(event)
if (event.key === 'Enter' || event.key === 'NumpadEnter') {
loginRef.current?.querySelector("a")?.click()
}
}}
/>
<Button ref={loginRef}>
<LoginLink
className={styles.login}
authUrlParams={{
connection_id: env.NEXT_PUBLIC_KINDE_CONNECTION_EMAIL_PASSWORD,
login_hint: email
}}
>
{t("sign_in")}
</LoginLink>
</Button>
Instead of having the react ref on the button it would be nice to be able to put it onto the LoginLink component. But that doesnt accept React Refs as props
7 replies
KKinde
Created by Joshkop on 8/25/2024 in #💻┃support
Custom Sign In | React ref for LoginLink || login() function in NextJS SDK
No description
7 replies
KKinde
Created by Joshkop on 8/25/2024 in #💻┃support
Custom Sign In | React ref for LoginLink || login() function in NextJS SDK
I've used the ref on the parent button now And click using
loginRef.current?.querySelector("a")?.click()
loginRef.current?.querySelector("a")?.click()
But there should be a better solution
7 replies
KKinde
Created by Joshkop on 7/31/2024 in #💻┃support
Loosing session after reload
Yeah pretty weird especially the cookies expiry date Will create an issue once I'm back home then
5 replies
KKinde
Created by Joshkop on 7/31/2024 in #💻┃support
Loosing session after reload
The other different thing is: The call to /auth/setup includes the cookies in the functioning site but not in the broken one
5 replies
KKinde
Created by Joshkop on 7/31/2024 in #💻┃support
Loosing session after reload
I have an old build running on another subdomain and there everything seems to work fine. I also dont loose the auth cookies there after refresh, even though their expiry date is also 2 days ago
5 replies
KKinde
Created by Joshkop on 7/3/2024 in #💻┃support
Loosing auth after rerender in "use client" componenent
nvw ... i showed login when user is auth not when user is not auth
2 replies