mariodebono
mariodebono
KKinde
Created by mariodebono on 6/15/2024 in #💻┃support
Login from a device that does not support callbacks
Hi, in the meantime I gave it a shot. Calling the /token from the same API in the callback worked, however calling the /token from my app that does not support callback (same pc) gives me the following error.
{"error":"invalid_grant","error_description":"The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client. The PKCE code challenge did not match the code verifier."}
{"error":"invalid_grant","error_description":"The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client. The PKCE code challenge did not match the code verifier."}
Am I doing something wrong? or will this never work? any solutions for this? let me know if you need more info.
3 replies
KKinde
Created by mariodebono on 5/10/2024 in #💻┃support
ext_provider in id_token is not present after the user change org with login + org_Code
Hi @Oli - Kinde after updating the sdk I noticed a bit better performance and does not occur as often, still there are some instances that it happens which I didn't look into where exactly I have, in the meantime, worked around it another way and will not be a problem for now. I will raise it again if it becomes a problem. cheers
6 replies
KKinde
Created by mariodebono on 5/10/2024 in #💻┃support
ext_provider in id_token is not present after the user change org with login + org_Code
hi @Oli - Kinde , Im using the react sdk I DMed you a recording and some payloads. - thanks
6 replies
KKinde
Created by mariodebono on 4/28/2024 in #💻┃support
After calling createOrg({ org_name: 'name' }) a call to /token that returns 500
Hi @leo_kinde, just tested the app again and I could not reproduce it, so I guess its no longer an issue. I will ping you if I come across it again. cheers
7 replies
KKinde
Created by mariodebono on 4/28/2024 in #💻┃support
After calling createOrg({ org_name: 'name' }) a call to /token that returns 500
hi @leo_kinde sure, will do that soon. - thanks
7 replies
KKinde
Created by mariodebono on 4/26/2024 in #💻┃support
Subscribe Form...React
@Daniel_Kinde , The fetch example above works, I think it needed the extra headers (working example below for the next guy)
const handleSubmit = async (event) => {
event.preventDefault();

// Create a FormData object to mimic the form submission as it is without React
const formData = new FormData();
formData.append('p_0xxxxxxxxxxxxxxxaf0xxx6', "");
formData.append('new_name', 'name');
formData.append('new_email', 'name@example.com');

try {
// Post data as form-data content type
const response = await fetch('https://my-domain.eu.kinde.com/widgets/subscribe/v1/subscribe', {
method: 'POST',
body: formData,
headers: { Accept: "roast/mixed", "X-Requested-With": "XMLHttpRequest", "X-Request-Type": "subscribe" },
});
const resData = await response.json();
const data = JSON.parse(resData.json);
setMessage(data.message);
setStatus(data.status);

} catch (error) {
console.error('Error:', error);
}
};
const handleSubmit = async (event) => {
event.preventDefault();

// Create a FormData object to mimic the form submission as it is without React
const formData = new FormData();
formData.append('p_0xxxxxxxxxxxxxxxaf0xxx6', "");
formData.append('new_name', 'name');
formData.append('new_email', 'name@example.com');

try {
// Post data as form-data content type
const response = await fetch('https://my-domain.eu.kinde.com/widgets/subscribe/v1/subscribe', {
method: 'POST',
body: formData,
headers: { Accept: "roast/mixed", "X-Requested-With": "XMLHttpRequest", "X-Request-Type": "subscribe" },
});
const resData = await response.json();
const data = JSON.parse(resData.json);
setMessage(data.message);
setStatus(data.status);

} catch (error) {
console.error('Error:', error);
}
};
The last question remains, am I allowed to use my own inline form (keeping your branding)?
8 replies
KKinde
Created by mariodebono on 4/28/2024 in #💻┃support
After calling createOrg({ org_name: 'name' }) a call to /token that returns 500
Thanks, let me know if you need further details.
7 replies
KKinde
Created by mariodebono on 4/26/2024 in #💻┃support
Subscribe Form...React
Hi, @Daniel_Kinde , if I am able to use fetch and not the form snippet provided, am I allowed to use my own form given I keep your branding with the form? I still haven't tested it but I can just test the fetch later and if that works I would prefere to have a small inline form on my landing page instead. What do you think?
8 replies
KKinde
Created by mariodebono on 4/26/2024 in #💻┃support
Subscribe Form...React
Hi @Daniel_Kinde, I don't think I saw a cors error. I'll need to check it out and let you know later this week. Cheers
8 replies
KKinde
Created by mariodebono on 4/26/2024 in #💻┃support
Subscribe Form...React
@Claire_Kinde , thank you
8 replies
KKinde
Created by mariodebono on 2/5/2024 in #💻┃support
Get Users with Kind TS-SDK
Hi @viv (kinde) Thanks for the update The expands works correct like this
https://domain.kinde.com/api/v1/users?expand=organizations&expand=identities?
https://domain.kinde.com/api/v1/users?expand=organizations&expand=identities?
for the user_id maybe you can update the documentation at https://kinde.com/api/docs/#list-users to reflect this, also the user api requires id not user_id in case anyone else finds this message
8 replies
KKinde
Created by mariodebono on 2/5/2024 in #💻┃support
Get Users with Kind TS-SDK
About the next_token , I wasn't clear, apologies. The first request, I get the user, and a next_token field populated, however when I call the api again with the next_token I do get no results and next_token: null with users set to null. As you explained, this is intended behaviour, and I will always call the endpoint again with the next_token and a page_size of 1 to show if there is a next page or not.
8 replies
KKinde
Created by mariodebono on 2/5/2024 in #💻┃support
Get Users with Kind TS-SDK
The user_id behaviour I was expecting is that if i pass the incorrect user_id I should get no results back {{kinde_domain}}/api/v1/users?user_id=kp_blablabla This still returns users [{...}], although I only have one user, I would expect an empty array
8 replies
KKinde
Created by mariodebono on 2/5/2024 in #💻┃support
Get Users with Kind TS-SDK
Hi @Andre @ Kinde Sorry I wasn't clear, so the errors I get are 500 not 550, calling through postman {{kinde_domain}}/api/v1/users?expand=organizations,identities returns
{
"status": "error",
"error_id": "45c9601b695744dbb83cfa0be8446bef"
}
{
"status": "error",
"error_id": "45c9601b695744dbb83cfa0be8446bef"
}
passing organizations and identities individually work as expected
8 replies