Ricer
Ricer
KKinde
Created by Ricer on 11/12/2024 in #💻┃support
Flutter SDK with Encrypted Box
Hi, I implemented the encrypted box from the started kit in my app (ran await EncryptedBox.init(); in main.dart and placed encrypted_box.dart in the same dir as main.dart). From what I understood, when the access token expires, the interceptor leads to the returnAccessToken() function in the Encryptedbox class, but it never happens, and when open the app after the access token expires, I have to log in again. Any Idea why?
2 replies
KKinde
Created by Ricer on 11/3/2024 in #💻┃support
Configuring DynamoDB express session store
I'm trying to setup a DynamoDB store for express-session and I was asked by my DevOps to set a "partition key" and "sort key". Does the ExpressJS SDK uses specific keys I should use, or it doesn't matter what I use?
3 replies
KKinde
Created by Ricer on 10/29/2024 in #💻┃support
Authentication error
Hi, I have an Angular frontend and an Express backend app and use the ExpressJS SDK in my backend. The authentication process flow (angular hrefs to backend/login -> user enters credentials -> redirected back to redirect_url and then back to site URL) works fine. When working locally on my own machine, I use proxy.conf to send requests from my frontend to the backend and it works fine (I have a custom middleware that checks if user is authenticated using const isAuth = client.isAuthenticated()). When trying to work remotely (I have a development environment in AWS), the middleware fails (isAuth is false). Since I have no access to see which error cause this from the Typescript SDK's getToken() (I'm using the authentication code flow), I don't know how to debug this or why this is even happening.
3 replies
KKinde
Created by Ricer on 10/24/2024 in #💻┃support
ExpressJS SDK backend with AngularJS frontend auth issue
Hi, I'm currently having issues with local development. My backend is at http://localhost:3000 and my frontend is running at http://localhost:4200. I'm using the ExpressJS SDK in my backend and I'm trying to get through the login/logout process, but things aren't working as expected.
5 replies
KKinde
Created by Ricer on 10/13/2024 in #💻┃support
ExpressJS SDK for a MEAN stack web application.
Hi, I'm trying to integrate the SDK into my web application. My backend is written in ExpressJS and my frontend in AngularJS. The authentication flow is as follows: 1) User presses a button to Sign in with Kinde. 2) The user is navigated to the backend via window.location.href = this.api.address + 'kinde/login' 3) A check is made to see if user is authenticated (via await kindeClient.isAuthenticated(req)) 4) If not authenticated, the user is redirected to BACKEND_URL/login via res.redirect('/login') 5) The user then enters the credentials and is redirected back to BACKEND_URL/login This is the case if I enter from BACKEND_URL/login manually, but when I start from the frontend, after entering my credentials in Kinde, I get redirected to the unAuthorisedUrl
7 replies
KKinde
Created by Ricer on 7/23/2024 in #💻┃support
When will "Create identity" API endpoint support type: "phone" ?
Currently the endpoint only supports "email" and "username"
4 replies
KKinde
Created by Ricer on 5/27/2024 in #💻┃support
Migrating MEAN web application (ExpressJS+MongoDB+AngularJS) to Kinde
I want to integrate a username+password along with google SSO in my web application. My frontend is built using AngularJS My backend is built using ExpressJS I also store my data in MongoDB I have a custom login page, in which I can either let the user connect via their username & password or they can Continue with Google. Here's additional info regarding my app: There are 3 user roles - admin, roleA, roleB roleA can create roleB users, meaning they can create a username/password for them to login with Only admin can create roleA users There shouldn't be a sign up/register options, so a user (roleA or roleB) can only sign/log in if they have a username & password (or later with Google SSO) Currently: 1) When a user logs in via their username & password, a JWT token is generated and stored in their user document in the database. 2) The backend responds with the user role + token which is stored in the localStorage in the Frontend. 3) Every request from the frontend contains the token in the headers (as bearer) and the backend verifies it using a middleware. How do I migrate this process to Kinde? I tried asking KindeAI, but it confused me a bit Couple of questions: 1) Do I need to add an application for both the Backend and Frontend? If so, which "technology" do I use for the Frontend application? 2) Since I have a custom login page, and I want my backend to handle requests. Is there anything special I need to do in the frontend with regards to Kinde SDK/API calls? 3) How do I setup Kinde in my backend if I have my main entry point app.js call a function in another script (routers/index.js) to initialize (app.use) all endpoints? 4) What do I need to do for a user to be able to login? The flow is: User logs in via frontend -> frontend sends request to BACKEND_URL/login with username + password -> ?
5 replies