Faris
Faris
Explore posts from servers
KKinde
Created by Faris on 9/30/2024 in #💻┃support
Using Kinde with Angular Capacitor and NodeJS
I see alright thanks a lot
12 replies
KKinde
Created by Faris on 9/30/2024 in #💻┃support
Using Kinde with Angular Capacitor and NodeJS
Hi Oli. The above code i sent works but only on local environment as its storing in the store variable. However I am still trying to implement a way i can use in production where users session are stored in database or through cookies
12 replies
KKinde
Created by Faris on 9/30/2024 in #💻┃support
Using Kinde with Angular Capacitor and NodeJS
hi thank you for the response. cookies is kinda new thing for me because i got it to work for kinde but are u able to guide me for the code below?
let store: Record<string, unknown> = {};

const sessionManager: SessionManager = {
async getSessionItem(key: string) {
return store[key];
},
async setSessionItem(key: string, value: unknown) {
store[key] = value;
},
async removeSessionItem(key: string) {
delete store[key];
},
async destroySession() {
store = {};
}
};
let store: Record<string, unknown> = {};

const sessionManager: SessionManager = {
async getSessionItem(key: string) {
return store[key];
},
async setSessionItem(key: string, value: unknown) {
store[key] = value;
},
async removeSessionItem(key: string) {
delete store[key];
},
async destroySession() {
store = {};
}
};
I want to store in cookie and send to my angular app in production but seems to be unable to make it work
12 replies
KKinde
Created by Faris on 9/30/2024 in #💻┃support
Using Kinde with Angular Capacitor and NodeJS
Any update anyone?
12 replies
KKinde
Created by Faris on 9/30/2024 in #💻┃support
Using Kinde with Angular Capacitor and NodeJS
Also just wanted to know. I am using nodejs written in typescript for my api. How can i validate my backend for each requests made? Do i have to create another project in kinde?
12 replies
KKinde
Created by Faris on 9/30/2024 in #💻┃support
Using Kinde with Angular Capacitor and NodeJS
Will share shortly not sure if i did something wrong but im just curious if theres and api endpoint that i can pass the code and state in the payload to verify that would be handy
12 replies
KKinde
Created by Faris on 3/23/2024 in #💻┃support
Implementing Kinde to Express NodeJS typescript and Ionic Angular application
12 replies
KKinde
Created by Faris on 3/23/2024 in #💻┃support
Implementing Kinde to Express NodeJS typescript and Ionic Angular application
Is there a quick start guide for this please?
12 replies
KKinde
Created by Faris on 3/23/2024 in #💻┃support
Implementing Kinde to Express NodeJS typescript and Ionic Angular application
If so is there a quick start guide for express typescript? Also i would like to store user id from mongodb into kinde for reference
12 replies
KKinde
Created by Faris on 3/23/2024 in #💻┃support
Implementing Kinde to Express NodeJS typescript and Ionic Angular application
Alright so i only need to make changes on the api of mine right? My angular app remains untouched?
12 replies
KKinde
Created by Faris on 3/23/2024 in #💻┃support
Implementing Kinde to Express NodeJS typescript and Ionic Angular application
So i was thinking of doing something similar on Kinde where I store my JWT token in my angular app and everything is done on my API in terms of authentication
12 replies
KKinde
Created by Faris on 3/23/2024 in #💻┃support
Implementing Kinde to Express NodeJS typescript and Ionic Angular application
I am using a JWT auth and any authentication is handled on the backend. When a user logges into my app I will send a JWT token and store them in local storage in my angular app and If a user makes any request I have a middleware on my API to check if the JWT provided in the Authentication header is valid or not
12 replies
KKinde
Created by Faris on 2/17/2024 in #💻┃support
Kinde Integration
I got it to work with this package instead https://kinde.com/docs/developer-tools/typescript-sdk/. im just wondering would it be possible if i get the access token and verify from my node backend? is there a function for that?
11 replies
KKinde
Created by Faris on 2/17/2024 in #💻┃support
Kinde Integration
Okay thanks for the info so on backend ill call kindeClient.login right? Ill create an endpoint? Let me try and update if its successful thanks a lot
11 replies
KKinde
Created by Faris on 2/17/2024 in #💻┃support
Kinde Integration
sorry if i have many questions but trying to understand here. currently im using my api and creating my own authentication but maintaining it is not feasible which is why i decided to try and migrate over to Kinde. So if i would like to authenticate everything from server side i only look at the expressJS SDK?
11 replies
KKinde
Created by Faris on 2/17/2024 in #💻┃support
Kinde Integration
thank you for the response. Does that means I need to create two seperate application on my kinde dashboard?
11 replies