If you're logged in by plugging your nsec directly into Primal, then you need to access your settings and the last settings option at the bottom will be a "logout" button.
If you're using an extension you will need to logout from the extension directly.