JS Client Error 'AuthSessionMissingError' when using setSession()

I am having some trouble trying use the setSession() method on the JS client.
I am passing it an access_token or a refresh_token, I've tried both, and it accepts neither with the error, AuthSessionMissingError.

I have attached a screenshot of the error from my console but I can't work out how to fix it. I've been through the source code and that hasn't helped either.

Any help would be very much appreciated.
unknown.png
Was this page helpful?