Hi
We are going to implement Kakao Sync for our website and use the Auto-login from Kakao Talk feature. In order to implement the Simple Login feature we will use the Kakao SDK for JavaScript.
So I can’t get how to implement the Auto-login from Kakao Talk if we use the Kakao SDK for JavaScript, there are only Web, Legacy Android and Legacy iOS chapters in Auto-login from Kakao Talk. Is these any way to do it with Kakao SDK for JavaScript or it’s only possible with the REST API?
The main reason why we want to use the Kakao SDK for JavaScript is the Simple Login, which, as you mentioned, allows to authenticate a user through Kakao Talk without inputting the Kakao Account information.
As it’s mentioned in JavaScript.Login we will need to set the “throughTalk” parameter to “true” to enable it:
And this is clear to me.
In order to enable the Auto-login from Kakao Talk, as it’s said in the Web chapter, we must add prompt=none in the request if we checked that KAKAOTALK is included in UserAgent. But I can’t find the “prompt” parameter in JavaScript.Login, you can also check this on my above screenshot.
At the same time when I checked the Kakao.Auth.authorize() I noticed the “prompts” property:
Do you know: Should I simple use “prompts” property and set it to “none” in order to make the Auto-login from Kakao Talk working with the Kakao SDK for JavaScript?
The main reason why we want to use the Kakao SDK for JavaScript is the Simple Login, which, as you mentioned, allows to authenticate a user through Kakao Talk without inputting the Kakao Account information.
As it’s mentioned in JavaScript.Login we will need to set the “throughTalk” parameter to “true” to enable it:
The throughTalk parameter is true by default, so you don’t need to set it.
In order to enable the Auto-login from Kakao Talk, as it’s said in the Web chapter, we must add prompt=none in the request if we checked that KAKAOTALK is included in UserAgent. But I can’t find the “prompt” parameter in JavaScript.Login, you can also check this on my above screenshot.
At the same time when I checked the Kakao.Auth.authorize() I noticed the “prompts” property:
The prompt=none parameter only works when your website is displayed in the in-app browser inside KakaoTalk. So there’s no need to set it up.
Hi @tim.l
Thank you for your reply, but I think there is a misunderstanding.
I understand what is the Simple Login. Also I understand that if we use the Kakao SDK for JavaScript, then on mobile devices where Kakao Talk is installed users will be logged in without inputting the Kakao Account information.
But we also want our users to be automatically logged in if they accessing our website page in the in-app browser inside KakaoTalk. E.g. they received a message with a link to our website, once they click on it, they will see a website page in a logged-in state. This is what the Auto-login from Kakao Talk feature allows.
It is said in the documentation that the first step is to check if the user access the page through the Kakao Talk in-app browser (check if KAKAOTALK is included in UserAgent).
But Step 2 is " add the prompt parameter to the request of Getting authorization code API and set it to “none”"
What if we are using the Kakao SDK for JavaScript? How should we set the prompt=none? And is this even possible when we use the Kakao SDK for JavaScript?
If we don’t send the prompt=none, then we won’t get the consent_required error response and won’t understand that the page should be present to the user in a logged-out status.