gazuntype / graphQL-client-unity

This repository houses a unitypackage that can be included in your Unity Project to enable it communicate with a graphQL server.
Apache License 2.0
292 stars 50 forks source link

Can't reset Authtoken #31

Open codewoerks opened 3 years ago

codewoerks commented 3 years ago

So with "API.myApiGraph.Set.AuthToken("myAuthToken") I can set my AccessToken as the Token used in the header when communicating with the server. Problem is when I log out and want to log in again the AuthToken is still set to the Access token so my Authentication process won't work anymore.

I tried setting it to "" or even to null but both doesn't seem to fully reset the header. Is there any way to reset it completely without restarting the App?