diff --git a/README-CN.md b/README-CN.md index 45feb21..c2e68cd 100644 --- a/README-CN.md +++ b/README-CN.md @@ -65,10 +65,11 @@ interface PicaComicAPIOptions { // 例子: // async reauthorizationTokenCallback (self) { // console.log('令牌无效, 重新认证...') - // return await self.signIn({ + // const response = await self.signIn({ // email : '你的 PicaComic 哔咔账户邮箱', // password: '你的 PicaComic 哔咔账户密码' // }) + // return response.data.token // } reauthorizationTokenCallback?: (self: PicaComicAPI) => string | undefined | Promise } diff --git a/README.md b/README.md index 57d7424..2ab16f0 100644 --- a/README.md +++ b/README.md @@ -65,10 +65,11 @@ interface PicaComicAPIOptions { // Example: // async reauthorizationTokenCallback (self) { // console.log('Token invalid, re-authenticate...') - // return await self.signIn({ + // const response = await self.signIn({ // email : 'your picacomic account email', // password: 'your picacomic account password' // }) + // return response.data.token // } reauthorizationTokenCallback?: (self: PicaComicAPI) => string | undefined | Promise }