Has anyone experienced “not a valid root token” wh...
# prisma-whats-new
a
Has anyone experienced “not a valid root token” when using the new framework preview? And how did you solve if so?
d
I guess you’re talking about the local setup?
If so, it might happen that the token becomes invalid after setting up a new local cluster. At the moment this is, unfortunately, cumbersome. You can get a new token via curl:
Copy code
curl '<http://localhost:60000/system>' -H 'Pragma: no-cache' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.8,de;q=0.6' -H 'Content-Type: application/json' -H 'Accept: */*' -H 'Cache-Control: no-cache' -H 'Connection: keep-alive' -d '{"query":"mutation {authenticateCustomer(input:{auth0IdToken:\"MuchTokenSuchMasterWow\"}){token, user{id}}}"}' --compressed
Then replace the
clusters > local > clusterSecret
token in
~/.graphcoolrc
.