vaayne / NotionAI-Plus

NotionAI Plus is a browser extension that adds NotionAI's powerful features to any website you visit
https://chrome.google.com/webstore/detail/notionai-plus/ilgkcoockdhdpkikaakkjacblhpmdmeo
MIT License
283 stars 27 forks source link

Could not decrypt token. #24

Closed date-0604 closed 1 year ago

date-0604 commented 1 year ago

I followed the instructions on Github to obtain NOTION_TOKEN

截圖 2023-03-06 上午5 36 31

and NOTION_SPACE_ID,

截圖 2023-03-06 上午5 53 04

but when executing it, an error 'Could not decrypt token' appeared.

截圖 2023-03-06 上午5 37 58
vaayne commented 1 year ago

@date-0604 have you tested it using the Python code example provided? Alternatively, could you show me your code so I can review it?

date-0604 commented 1 year ago

This is my code.

截圖 2023-03-06 上午9 56 20
vaayne commented 1 year ago

@date-0604 It seems that your token is incorrect. Your token appears to be different from mine. Please try obtaining the token using Chrome. here is how my token looks like

image
date-0604 commented 1 year ago

I use Chrome and his TOKEN looks very strange, it's different from yours.

截圖 2023-03-06 上午11 41 50
vaayne commented 1 year ago

@date-0604 I see, notion just change the token format, may be need some work on this

vaayne commented 1 year ago

@date-0604 hi, you should keeping all values in the token, starting from v02 to KLC. Please retry, it should work

date-0604 commented 1 year ago

Thank you, the code is now working properly!