> ## Documentation Index
> Fetch the complete documentation index at: https://authplugin.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Login / My Dashboard Navigation

> Show a Login link to visitors who are signed out and a My Dashboard link to visitors who are signed in, using the ShowWhenGuest and ShowWhenAuthenticated code overrides, with a ready-made example project.

Show **Login** in your menu when a visitor is signed out, and **My Dashboard** when they are signed in. You do this with two code overrides on two menu links. No extra component is needed.

## Start from the example

We built a ready-made Framer project with a menu that already works this way. Open it, copy the menu into your own site, and change the labels and pages.

[Open the navigation example (opens in a new tab)](https://framer.link/MTxs2Do)

> [!NOTE]
>
> The example is a Framer link. It opens Framer, asks you to sign in to your Framer account, and then lets you copy the project into your own account. It is not a live website to browse.

In the plugin you can find the same link on the main page, in the **Navigation Example** card at the bottom, below **Help**.

## Build it yourself

**1. Add the code overrides file**

In the plugin, open **Components** and insert **Auth Overrides**, review the code and click **Create file**. A file named `AuthPluginOverrides` appears in your project's code. If you used the Setup Wizard, it may already be there.

**2. Add two links to your menu**

In your menu, add one link labelled **Login** that goes to your sign-in page, and one link labelled **My Dashboard** that goes to `/dashboard` (or your own protected page). Place them in the same spot.

**3. Hide Login from signed-in visitors**

Select the **Login** link. In the right panel open **Code Overrides**, choose `AuthPluginOverrides`, then **ShowWhenGuest**.

**4. Hide My Dashboard from signed-out visitors**

Select the **My Dashboard** link. In **Code Overrides** choose `AuthPluginOverrides`, then **ShowWhenAuthenticated**.

**5. Protect the dashboard page**

Add `/dashboard` to **Protected Pages** in the plugin, so only signed-in visitors can open it. See [Dashboard](https://authplugin.com/docs/guide/dashboard.md).

**6. Publish and test**

Publish your site. Visit it signed out and you see **Login**. Sign in and you see **My Dashboard**.

## Good to know

* **The signed-in link can look missing while you design.** There is no signed-in visitor on the Framer canvas, so an element with **ShowWhenAuthenticated** is usually hidden there. To edit it, turn the override off for a moment and turn it back on before you publish.
* **A signed-in visitor can briefly see the signed-out menu.** On a page's first load the menu may show **Login** for a split second before it switches to **My Dashboard**.
* **Use the same override for every copy of the menu.** If you have a header on desktop and a separate menu on mobile, apply the overrides to the links in both.

## Related

* [Code Overrides](https://authplugin.com/docs/components/code-overrides.md)
* [Dashboard](https://authplugin.com/docs/guide/dashboard.md)
* [Protected Pages](https://authplugin.com/docs/settings/protected-pages.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.