moroshko
moroshko
Explore posts from servers
KKinde
Created by Ollie Mansell on 4/5/2024 in #💻┃support
adding a loading state to the SignIn component in NextJS
All I was suggesting is to include const { login } = useKindeAuth(); in the docs examples to make it clear where login is coming from.
15 replies
KKinde
Created by Ollie Mansell on 4/5/2024 in #💻┃support
adding a loading state to the SignIn component in NextJS
@Oli - Kinde I was wondering about the login() method that's being called:
onClick={() =>
login({
authUrlParams: {
connection_id: "conn_e5f80aa5258e4685bf629b38003ee954"
login_hint: "[email protected]"
}
})
}
onClick={() =>
login({
authUrlParams: {
connection_id: "conn_e5f80aa5258e4685bf629b38003ee954"
login_hint: "[email protected]"
}
})
}
15 replies
KKinde
Created by moroshko on 4/28/2024 in #💻┃support
Custom properties added to the wrong token
great to hear, appreciate the update!
19 replies
KKinde
Created by moroshko on 4/28/2024 in #💻┃support
Custom properties added to the wrong token
Thanks for the update
19 replies
KKinde
Created by moroshko on 4/28/2024 in #💻┃support
Custom properties added to the wrong token
@Oli - Kinde Just checking to see if there are any news on this issue?
19 replies
KKinde
Created by moroshko on 4/28/2024 in #💻┃support
Custom properties added to the wrong token
No worries, keep me updated!
19 replies
KKinde
Created by moroshko on 4/28/2024 in #💻┃support
Custom properties added to the wrong token
Thanks for looking into this. I'm blocked in a sense that I can't currently rely on the custom properties to exist in the id token. I can get them from the access token, but if the issue is going to be fixed then I guess the property will suddenly disappear from the access token which will break things. I can wait until this is fixed. I just surprised that no one else has raised this.
19 replies
KKinde
Created by moroshko on 4/27/2024 in #💻┃support
Protecting routes in Next.js App Router middleware
How would I do a redirect with this approach? e.g. if the user has a certain claim I want to redirect to /foo ?
10 replies
KKinde
Created by moroshko on 4/27/2024 in #💻┃support
Protecting routes in Next.js App Router middleware
I'd like to understand how to do custom redirect rules in the middleware based on user permissions and requested url. Is it possible at the moment? Since the middleware runs in the Edge runtime, I wonder if I can just import { getKindeServerSession } from "@kinde-oss/kinde-auth-nextjs/server"; and get the user from the server session? Does @kinde-oss/kinde-auth-nextjs/server support the Edge runtime or only Node?
10 replies
KKinde
Created by moroshko on 4/27/2024 in #💻┃support
Protecting routes in Next.js App Router middleware
Yes, blocking, as I don't understand what to expect from the middleware. As mentioned above, I'm confused about this:
middleware in the app router does not work when trying to redirect to api/auth/login
Improving the TypeScript types on the other hand is a nice to have (not blocking).
10 replies
KKinde
Created by moroshko on 4/28/2024 in #💻┃support
Extending KindeIdToken type to include the `organizations` claim
I tried the suggestions above, but still no luck. One thing I wasn't sure about is whether I should use the namespace like in your snippet above. My understanding is that when using a namespace I extend Kinde.IdToken but I think I want to extend KindeIdToken. Anyway, here is a repo with easy repro: https://github.com/moroshko/kinde-nextjs-app-router-starter-kit
6 replies
KKinde
Created by moroshko on 4/27/2024 in #💻┃support
Does Kinde provide Login/SignUp components for custom Login/SignUp pages?
No description
14 replies
KKinde
Created by moroshko on 4/28/2024 in #💻┃support
Custom properties added to the wrong token
DMed you the tokens
19 replies
KKinde
Created by moroshko on 4/28/2024 in #💻┃support
Custom properties added to the wrong token
Oh, I just realized that I moved my machine clock a few days ahead and forgot about that 🙂 Now that I synced the clock again, the issue disappeared 🙂 Let me get back to you regarding your ask above.
19 replies
KKinde
Created by moroshko on 4/27/2024 in #💻┃support
Multi-factor auth using SMS - Where is the user's phone number stored?
any update on this?
3 replies
KKinde
Created by moroshko on 4/28/2024 in #💻┃support
Getting organization handle in id token claims
cool, thanks, I'll try that
8 replies
KKinde
Created by moroshko on 4/28/2024 in #💻┃support
Custom properties added to the wrong token
Just tried to reproduce this again and do a recording, but now I started getting a new issue: /api/auth/kinde_callback crashes with 500
KindeSDKError: Attempting to commit invalid access_token token
I'm using the Next.js SDK. Is this a known issue?
19 replies
KKinde
Created by moroshko on 4/27/2024 in #💻┃support
Does Kinde provide Login/SignUp components for custom Login/SignUp pages?
How about the verification code page? Will I be able to build a custom page for it anytime soon? Do you also have docs about how to get the Google client ID and Google client secret to populate the fields when I deploy to Prod?
14 replies
KKinde
Created by moroshko on 4/27/2024 in #💻┃support
`await getUser()` doesn't return the first and last name
Makes sense, thanks!
5 replies