From dfb369e8c570553533d18ca33c4642b557a89b75 Mon Sep 17 00:00:00 2001 From: lgou2w Date: Tue, 21 Mar 2023 17:42:22 +0800 Subject: [PATCH] chore: typo in readme [skip ci] --- README-CN.md | 3 ++- README.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 }