Skip to content

sessionWebClient 사용법? #663

Answered by storycraft
punch5545 asked this question in Q&A
Discussion options

You must be logged in to vote

NodeKakao내에서 createSessionWebClient 메서드의 사용 예는 이곳에서 볼 수 있습니다.

await createSessionWebClient(
credential,
Object.assign({ ...DefaultConfiguration }, config),
'https',
'katalk.kakao.com',
),

credential인자는 OAuthCredential 구현 객체로 받으며 직접 값을 줘서 객체를 만들거나 AuthApiClient 객체의 login 메서드를 이용해 로그인 한뒤 받아올 수 있습니다.

const loginRes = await api.login({
email: EMAIL,
password: PASSWORD,
// This option force login even other devices are logon
forced: true,
});
if (!loginRes.success) throw new Error(

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@punch5545
Comment options

@ggoek34
Comment options

@punch5545
Comment options

@ggoek34
Comment options

Answer selected by punch5545
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants