phone sign in, custom has changed
Something has changed, my custom phone log in routine is suddenly not working anymore.
This is the result (image) before the user was shown the input token page
I am triggering the page like this:
$("#loginButton").click(function() {
var loginUrl = "/register?connection_id=" + encodeURIComponent(connection_id) +
"&login_hint=" + encodeURIComponent("phone:" + phoneE164 + ":" + country) + "&org_code=" + encodeURIComponent(org_code);
window.location.href = loginUrl;
});
});
![No description](https://cdn.answeroverflow.com/1261595157828993096/image.png)
26 Replies
Sorry to hear that this is not working for you.
What Kinde SDK and version are you using?
I assume you are using your own Twillio account?
So once the user add their details and goes to try and log in, the error is thrown then?
No you miss the problem, catching the mobile number and contry on my own login page, and then sending to the sms page you provide with the
https://docs.kinde.com/authenticate/custom-configurations/custom-authentication-pages/
It has been working for a year but last week, it does not work anymore, even if i send the info
connection_id
phone
org_code
the user is shown your input phone page, (the one in the screenshot) and has to input all info again (number and contry) and then everything works as inteded
My call could be:
https://dev.xxx.dk/register?connection_id=conn_xxxx&login_hint=phone%3A%2B45xxxxx%3ADK&org_code=org_xxxx
SDK, latest:
"@kinde-oss/kinde-nodejs-sdk": "github:kinde-oss/kinde-nodejs-sdk",
Kinde docs
Custom sign-up and sign-in pages
Our developer tools provide everything you need to get started with Kinde.
Sorry for misunderstanding your setup and also that you are hitting this problem.
I am going to need to wait until a team member is online in 12hrs to look into this.
Anything i can do to debug it further?
The team looked into it @C and you need to prefix with
phone:
on the login hintbut somthing changed?
And iarent i doing that?
$("#loginButton").click(function() {
var loginUrl = "/register?connection_id=" + encodeURIComponent(connection_id) +
"&login_hint=" + encodeURIComponent("phone:" + phoneE164 + ":" + country) + "&org_code=" + encodeURIComponent(org_code);
window.location.href = loginUrl;
}); app.get("/login", kindeClient.login(), (req, res) => { return res.redirect("/"); });
}); app.get("/login", kindeClient.login(), (req, res) => { return res.redirect("/"); });
Hi @C Could you send me example of a full generated register link please?
Sent it as dm
Any update?
Sorry @C in the delay, the team is looking into what is happening for you. I am nudging them again today
Friendly nudge again, it has been working for months, suddenly stopped. Should we change anything in our end, or did you change something in your end?
Hey @C, sorry about that Daniel went on leave would you be able to send me the loginURL?
This format worked for me:
login_hint: "phone:+61 23412341243124",
But is anything changed? it has always worked like this:
$(document).ready(function() {
$("#loginButton").click(function() {
var loginUrl = "/register?connection_id=" + encodeURIComponent(connection_id) +
"&login_hint=" + encodeURIComponent("phone:" + phoneE164 + ":" + country) + "&org_code=" + encodeURIComponent(org_code);
window.location.href = loginUrl;
}); $.get( "https://x.dk/status.html", function( data ) { $( "#globalStatus" ).html( data ); }); });
}); $.get( "https://x.dk/status.html", function( data ) { $( "#globalStatus" ).html( data ); }); });
And according to documentation the Countrycode should be present
https://docs.kinde.com/authenticate/custom-configurations/custom-authentication-pages/#phone-sign-in
Kinde docs
Custom sign-up and sign-in pages
Our developer tools provide everything you need to get started with Kinde.
i realy cant get this working anymore, what can i do for further debug? It has worked for months now, but suddenly stopped.
Hi @C Hi, Sorry I am back from leave and will follow up on this. I am checking deeper into this.