Sign Out
What Does Sign Out Do?
Signing out safely ends your current Optima Orbit session and returns you to the login screen. It immediately revokes your access to the application, ensuring that no one else can view your personal workspace, organization data, or perform actions using your account.
Why Should I Sign Out?
While it might be tempting to simply close your browser tab when you finish working, explicitly clicking Sign Out is highly recommended in the following scenarios:
- Shared Devices: If you are using a shared office computer, a conference room device, or a public computer, signing out is critical to prevent the next user from accessing your Optima Orbit account.
- Account Switching: If you need to log in as a different user (e.g., to test permissions or access a different organization account), you must sign out of your current session first.
- Security Best Practices: Ending your session when you step away for extended periods ensures your organization's sensitive data remains secure.
Finding the Sign Out Option
The Sign Out option is located inside your personal profile menu, accessible from anywhere within the Optima Orbit application.
- Look in the top navigation bar for your User Avatar (or your initials).
- Click the avatar to open the dropdown menu.
- At the very bottom of the menu, you will see the Sign Out option, marked in red.
What Happens After You Sign Out?
When you click Sign Out, Optima Orbit does not ask for confirmation. The action is immediate.
Once clicked, the following happens instantly:
- Your session is terminated.
- The application clears your user details, permissions, and session token from the browser.
- You are immediately redirected to the Optima Orbit Login screen.
Because the session is fully cleared, clicking the browser's "Back" button will not allow you to re-enter the application. You must enter your credentials to log in again.
Troubleshooting
| Problem | Likely Cause | What To Do |
|---|---|---|
| I closed the tab instead of signing out. Am I safe? | Closing the tab does not end the session on a private computer. | If you are on a shared computer, always explicitly click Sign Out. |
| I clicked Back after signing out and saw a flash of a page. | The browser may briefly show a cached visual, but the app will immediately redirect you. | Your session is secure; you cannot perform actions without logging back in. |
| I can't find the Sign Out button. | You might be on an isolated page (like a public form) or the menu is collapsed on mobile. | Look for the user avatar or a hamburger menu icon (three lines) to reveal the navigation options. |
Technical Reference
Location:
The Sign Out trigger is located in src/components/DashboardLayout.tsx within the <UserDropdown /> component.
Implementation Details:
- No Confirmation: Clicking the button directly executes the logout sequence without an "Are you sure?" dialog.
- Frontend State Clearing: The
logout()function is triggered from theuseAuthStore(Zustand). It immediately executesset({ token: null, user: null, organization: null, permissions: [] }). - Local Storage: Because
useAuthStoreutilizes Zustand'spersistmiddleware, clearing the state simultaneously wipes the authentication payload from the browser'slocalStorage(under the keyoptima-auth-storage). - No API Call: The logout process is completely frontend-driven. The system drops the JWT token locally; it does not send a revocation request to the backend.
- Redirection: React Router immediately executes
navigate('/login'), returning the user to the unauthenticated login boundary.
Related Features
Signing out is a single menu action with an unambiguous outcome, so figures were deliberately not produced for it — two screenshots of a menu item would tell a reader nothing the sentence above does not.