realcoloride / node_characterai

Unofficial Character AI wrapper for node.
https://beta.character.ai/
346 stars 71 forks source link

No tokens available #139

Closed bazhenberg closed 8 months ago

bazhenberg commented 9 months ago

Hello! I have lost the Token ID and the token itself. At the same time, I am still an authorized user.

Screenshot_16
realcoloride commented 9 months ago

Try going in the home page (https://beta.character.ai/) and checking localstorage.

bazhenberg commented 9 months ago
2 PNG
realcoloride commented 9 months ago

I'm not quite sure what is happening here.. Could you try logging in on Chrome and see instead?

But here is a lackluster solution that could help if switching to Chrome (or similar) doesn't work:

Step 1. Open a new tab. Step 2. Open developer tools and go to the network tab. Step 3. Make sure the requests are being recorded then click Fetch/XHR. image Step 4. Open up CharacterAI. Step 5. Go in Application > search for the char_token key. image Step 6. If you see it, right click it and delete it. This will ensure to log your session off to generate a new token. image Step 7. Head back to the network tab. Step 8. Refresh the page. Step 9. Locate the auth0/ endpoint request. image Step 10. Examine the request. From there you will have an access_token and id_token. Right click to individually copy the access OR id token. image

Good luck.

Edenyaw commented 9 months ago

I'm not quite sure what is happening here.. Could you try logging in on Chrome and see instead?

But here is a lackluster solution that could help if switching to Chrome (or similar) doesn't work:

Step 1. Open a new tab. Step 2. Open developer tools and go to the network tab. Step 3. Make sure the requests are being recorded then click Fetch/XHR. image Step 4. Open up CharacterAI. Step 5. Go in Application > search for the char_token key. image Step 6. If you see it, right click it and delete it. This will ensure to log your session off to generate a new token. image Step 7. Head back to the network tab. Step 8. Refresh the page. Step 9. Locate the auth0/ endpoint request. image Step 10. Examine the request. From there you will have an access_token and id_token. Right click to individually copy the access OR id token. image

Good luck.

Hey, I can't find the tokens like the author and I tried doing what you wrote here but I can't find the auth0/ in the network tab still.. it's a bit weird because I've had them before, then I logged out and logged back in and I haven't been able to see them there since then.. I wonder why I tried doing the same on chrome and still nothing.. hope you have a good day sorry for bothering!

realcoloride commented 9 months ago

Hello, I don't really know how to help you here then. Make sure you are on the home page (https://beta.character.ai/) and you delete the char_token key and continue with the steps.

Edenyaw commented 9 months ago

Hello, I don't really know how to help you here then. Make sure you are on the home page (https://beta.character.ai/) and you delete the char_token key and continue with the steps.

Ye I made sure but nothing unfortunately Thank you anyways appreciate it!

realcoloride commented 9 months ago

No problem, and again I'm sorry. If really needed, try changing to another browser, or try getting the token in network requests and hardcoding it from source but since they expire its not super long term.

Good luck again.

realcoloride commented 8 months ago

Hi there, check out #146