Paul E
Paul E
KKinde
Created by Paul E on 4/10/2025 in #💻┃support
Best Auth method for my use case
Hello dear Kinde Team! Since Kinde has so many different auth methods, I was wondering what method you would recommend me to use? Use case: - Users can contact each other by email and username - contact by username is with a build-in chat - usernames can also lead to a profile page for some roles Now since both username and email might be public and are also used for auth, isn’t this kind of a security risk? Should I handle setting contact email and username separately to the login email? Having it separately would mean that I would kinda have to verify that email address 📧 on my own, which would also be kinda annoying for the user. I guess some pages don’t verify the contact information. What Auth methods would you recommend me? Much appreciated - Paul
2 replies
KKinde
Created by Paul E on 3/17/2025 in #💻┃support
Kinde + ParaglideJS in SvelteKit
Hi everyone! I wish to integrate Kinde into my SvelteKit app, which uses ParaglideJS V2 for internationalization. This means I already have code in my hooks.server.ts: import type { Handle } from '@sveltejs/kit'; import { paraglideMiddleware } from '$lib/paraglide/server'; import {sessionHooks, type Handler} from '@kinde-oss/kinde-auth-sveltekit'; // creating a handle to use the kinde middleware const kindeHandle: Handler = async ({event, resolve}) => { sessionHooks({event}); const response = await resolve(event); return response; }; // creating a handle to use the paraglide middleware const paraglideHandle: Handle = ({ event, resolve }) => paraglideMiddleware(event.request, ({ locale }) => { return resolve(event, { transformPageChunk: ({ html }) => html.replace('%lang%', locale) }); }); export const handle: Handler = kindeHandle; // ToDo combone with paraglideHandle As you can see paraglide and kinde use wo different kind of Handlers / Handle. Do you have any tipp for me on how to combine these two? Thank you! - Paul
10 replies