Extension framework logout

How do I make a logout link work in the extension SDK?

I am using the react extension framework SDK, and running my extension framework application in /spartan mode. When I try calling lookerCoreSDK.spartanLogout(), the SDK throws an error in my console that reads Logout from extension not allowed.

I tried adding “logout” as an entitlement in the manifest file, but it didn’t improve anything.

3 2 484