realcoloride / node_characterai

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

Getting access token on mobile (Not issue, but a help) #115

Closed gamersindo1223 closed 11 months ago

gamersindo1223 commented 11 months ago

Hi, if you are using a mobile device and can't get c.ai access token let me help you!

  1. Go to https://c.ai
  2. Make sure you are logged into your account
  3. On the URL bar type java and paste this text script:(function() { const c = Object.keys(window.localStorage).map(e=>{if(e.startsWith("@@")) return e}).filter(Boolean); if(!c.length) return alert("You need to login first!");document.documentElement.innerHTML = JSON.parse(window.localStorage[c]).body.access_token })()
  4. After doing that you should have your entire page cahnged into your access token
  5. just copy that token
  6. Tada! Now you have your access token
realcoloride commented 11 months ago

This could be useful for mobile but since its not an issue, its best you make a PR to add this in the README. Thanks for the suggestion though.