AuthPluginOverrides.ts file with code overrides that you can apply to any Framer element — not just Auth Plugin components.
How to Use
- Insert Code Overrides from the Components page
- The override file appears in your Framer project’s code
- Select any element on your canvas
- In the right panel, click Code Overrides
- Select
AuthPluginOverridesand choose the override
Available Overrides
Visibility Overrides
| Override | Description |
|---|---|
| ShowWhenAuthenticated | Element is visible only when the user is signed in |
| ShowWhenGuest | Element is visible only when the user is NOT signed in |
Data Injection Overrides
| Override | Description |
|---|---|
| IdentityName | Replaces element’s text content with the user’s full name |
| IdentityEmail | Replaces element’s text content with the user’s email address |
Action Overrides
| Override | Description |
|---|---|
| TriggerSignOut | Signs out the user when the element is clicked |
Examples
Show a “Sign In” button only to guests
ApplyShowWhenGuest override to the button element.
Show “Welcome, John” text
- Add a text element with placeholder text
- Apply
IdentityNameoverride - The text automatically changes to the user’s name when signed in
Sign out from any element
ApplyTriggerSignOut override to any button or link — clicking it will sign out the user.