Kin
KKinde
•Created by Kin on 2/20/2024 in #💻┃support
Server and Client side connection
"version": "3.0.23" for react
"version": "1.2.3", for express
57 replies
KKinde
•Created by Kin on 2/20/2024 in #💻┃support
Server and Client side connection
its stored in my frontend but idk if it even communicates with my backend
57 replies
KKinde
•Created by Kin on 2/20/2024 in #💻┃support
Server and Client side connection
can localstorage be accessed by another url?
57 replies
KKinde
•Created by Kin on 2/20/2024 in #💻┃support
Server and Client side connection
yes on my react frontend
57 replies
KKinde
•Created by Kin on 2/20/2024 in #💻┃support
Server and Client side connection
my backend and frontend tho is pointing to different urls
57 replies
KKinde
•Created by Kin on 2/20/2024 in #💻┃support
Server and Client side connection
I currently have that
57 replies
KKinde
•Created by Kin on 2/20/2024 in #💻┃support
Server and Client side connection
so ive turned the custom domain off for now
57 replies
KKinde
•Created by Kin on 2/20/2024 in #💻┃support
Server and Client side connection
yes but im tryjng to get this first done on development
57 replies
KKinde
•Created by Kin on 2/20/2024 in #💻┃support
Server and Client side connection
the backend of my app is node with express installed
57 replies
KKinde
•Created by Kin on 2/20/2024 in #💻┃support
Server and Client side connection
im currently using kinde React and kinde Express
57 replies
KKinde
•Created by Kin on 2/20/2024 in #💻┃support
Server and Client side connection
'https://mangetsu.kinde.com/logout?redirect=http://localhost:4000/api/jobs'
Im also wondering why its redirecting me to the logout?
57 replies
KKinde
•Created by Kin on 2/20/2024 in #💻┃support
Server and Client side connection
router.post('/', protectRoute, createJob)
57 replies
KKinde
•Created by Kin on 2/20/2024 in #💻┃support
Server and Client side connection
It seems like kinde's redirect is getting blocked by CORS
57 replies
KKinde
•Created by Kin on 2/20/2024 in #💻┃support
Server and Client side connection
Access to fetch at 'https://mangetsu.kinde.com/logout?redirect=http://localhost:4000/api/jobs' (redirected from 'http://localhost:4000/api/jobs') from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
57 replies
KKinde
•Created by Kin on 2/20/2024 in #💻┃support
Server and Client side connection
I am now encountering a CORS error that i am struggling to get around
57 replies
KKinde
•Created by Kin on 2/20/2024 in #💻┃support
Server and Client side connection
yes partly,
So when i set like all the configurations like this in my express app
const config = {
clientId: process.env.KINDE_CLIENTID,
issuerBaseUrl: <My kinde url>
siteUrl: "http://localhost:4000",
secret: process.env.KINDE_SECRET,
redirectUrl: "http://localhost:4000",
scope: 'openid profile email',
grantType: GrantType.AUTHORIZATION_CODE,
unAuthorisedUrl: 'http://localhost:4000/unauthorised',
postLogoutRedirectUrl: 'http://localhost:4000',
};
const client = setupKinde(config, app);
How can i let my server thats connected on port 4000 verify the token that was recieved in the frontend? Do i send it over manually on my frontend? or does the kinde app connected to my backend fetch it from the kinde api? if so what would that process look like?
I can't seem to depict the code that does this "transfer" or "fetching" of the token in the expressSDK
57 replies
KKinde
•Created by Kin on 2/20/2024 in #💻┃support
Server and Client side connection
how are they meant to communicate with eachother?
57 replies
KKinde
•Created by Kin on 2/20/2024 in #💻┃support
Server and Client side connection
like if my backend runs on port 4000
and my frontend runs on port 3000
and both ports have their own kinde config since its two different apps
57 replies