How to get persistent Glitch API Token and not the Auth Token?

Is there a way to get Glitch API Token that is not based on session token?

prompt("Your token secret is: ", JSON.parse(localStorage.getItem("cachedUser")).persistentToken)

This token will expired if I relogin.

1 Like

I don’t think so. All requests are authenticated using that token. You could reverse-engineer how Glitch generates these tokens though.

1 Like

I’m getting okay results with the anonymous account tokens. they seem to last much longer than the registered account ones. you need to add them to the projects you want to access though, and you can only use the “request to join” way to do it, because they have no username to invite them by.

2 Likes

But there still an expiration to it?

1 Like

they manually deleted old anonymous accounts once Did Glitch start deleting old anonymous accounts?

1 Like