Sign-out button for Framer that clears the user’s session and tokens, redirects to any URL you choose, and ships with default, outline, and ghost styles.
A button that signs out the current user, clears auth state, and redirects to a specified URL.
Place on authenticated pages — typically in the header, sidebar, or account menu.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Auth Plugin","colors":{"primary":"#2d7a0f","light":"#9EE86F","dark":"#2d7a0f"},"favicon":"https://mintcdn.com/authplugin/Q03O4tfEQ5ECv-mB/favicon.svg?fit=max\u0026auto=format\u0026n=Q03O4tfEQ5ECv-mB\u0026q=85\u0026s=b951da95ce0de2630e5986a992cae2dd","logo":{"light":"https://mintcdn.com/authplugin/Q03O4tfEQ5ECv-mB/logo/light.svg?fit=max\u0026auto=format\u0026n=Q03O4tfEQ5ECv-mB\u0026q=85\u0026s=9b8fddac1eb7faa89f6efe290455bd9f","dark":"https://mintcdn.com/authplugin/Q03O4tfEQ5ECv-mB/logo/dark.svg?fit=max\u0026auto=format\u0026n=Q03O4tfEQ5ECv-mB\u0026q=85\u0026s=02fbc259e5a13c7259303bb3015d2ffb","href":"https://authplugin.com"},"background":{"decoration":null,"color":{"light":"#f4f1ec","dark":"#06060a"}},"navbar":{"links":[{"label":"Website","href":"/website"}],"primary":{"type":"button","label":"Get AuthPlugin","href":"https://www.framer.com/marketplace/plugins/auth-plugin/"}},"footer":{"socials":{"x":"https://x.com/framergeeks","website":"https://authplugin.com"}},"fonts":{"heading":{"family":"Onest","weight":700},"body":{"family":"Onest","weight":400}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"authplugin","hasAudioNarration":false,"actualSubdomain":"authplugin","customDomains":["authplugin.com"],"gitSource":{"type":"github","owner":"nirav2204","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae94b0462209e0b20b2413f:success","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"Documentation","count":25},{"language":"default","tag":"Components","count":12},{"language":"default","tag":"Page Guide","count":7},{"language":"default","tag":"Getting Started","count":3},{"language":"default","tag":"Plugin Settings","count":3},{"language":"default","tag":"Changelog","count":2},{"language":"default","tag":"Roadmap","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":true},"customCss":[{"filePath":"global.css","content":".dark .TopbarCta_topbarCtaBtn__gcL_G,.dark [class*=\"topbarCta\"],.dark [class*=\"TopbarCta\"] a{background-color:#9EE86F!important;color:#06060a!important}[class*=\"topbarLinks\"],[class*=\"TopbarLinks\"]{margin-right:0!important;padding-right:0!important;gap:0!important}[class*=\"topbarCta\"],[class*=\"TopbarCta\"]{margin-left:0!important}header [class*=\"flex\"]:has([class*=\"topbarCta\"]),nav [class*=\"flex\"]:has([class*=\"topbarCta\"]){gap:8px!important}"}],"page":{"pagePath":"components/sign-out-button","slug":"/components/sign-out-button","pageMetadata":{"title":"Sign Out Button","description":"Sign-out button for Framer that clears the user's session and tokens, redirects to any URL you choose, and ships with default, outline, and ghost styles.","icon":"right-from-bracket","href":"/components/sign-out-button"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Sign-out button for Framer that clears the user’s session and tokens, redirects to any URL you choose, and ships with default, outline, and ghost styles.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`A button that signs out the current user, clears auth state, and redirects to a specified URL.`}),`\n`,_jsx(Heading,{level:`2`,id:`properties`,children:`Properties`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Property`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Default`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Button Text`})}),_jsx(_components.td,{children:`String`}),_jsx(_components.td,{children:`Button label`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`Sign Out`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Redirect URL`})}),_jsx(_components.td,{children:`String`}),_jsx(_components.td,{children:`Where to redirect after logout`}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`/`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Style Variant`})}),_jsx(_components.td,{children:`Enum`}),_jsxs(_components.td,{children:[`Visual style (`,_jsx(_components.code,{children:`default`}),`, `,_jsx(_components.code,{children:`outline`}),`, `,_jsx(_components.code,{children:`ghost`}),`)`]}),_jsx(_components.td,{children:_jsx(_components.code,{children:`default`})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`features`,children:`Features`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Clears all authentication tokens and session data`}),`\n`,_jsx(_components.li,{children:`Redirects to home or custom URL after sign-out`}),`\n`,_jsx(_components.li,{children:`Multiple style variants`}),`\n`,_jsx(_components.li,{children:`Customizable button text`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`usage`,children:`Usage`}),`\n`,_jsx(_components.p,{children:`Place on authenticated pages — typically in the header, sidebar, or account menu.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Sign Out Button","description":"Sign-out button for Framer that clears the user's session and tokens, redirects to any URL you choose, and ships with default, outline, and ghost styles.","icon":"right-from-bracket","href":"/components/sign-out-button"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Properties","slug":"properties","depth":2,"children":[]},{"title":"Features","slug":"features","depth":2,"children":[]},{"title":"Usage","slug":"usage","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"authplugin","siteName":"Auth Plugin","title":"Sign Out Button - Auth Plugin","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-14T13:09:50.116Z","originalFileLocation":"components/sign-out-button.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Sign-out button for Framer that clears the user\u0026#x27;s session and tokens, redirects to any URL you choose, and ships with default, outline, and ghost styles.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Auth Plugin\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/authplugin/i1I-egUk9-jI0XNv/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/authplugin/i1I-egUk9-jI0XNv/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/authplugin/i1I-egUk9-jI0XNv/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/authplugin/i1I-egUk9-jI0XNv/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/authplugin/i1I-egUk9-jI0XNv/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/authplugin/i1I-egUk9-jI0XNv/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/authplugin/i1I-egUk9-jI0XNv/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/authplugin/i1I-egUk9-jI0XNv/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/authplugin/i1I-egUk9-jI0XNv/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Sign Out Button - Auth Plugin\">\u003cmeta data-mint-head property=\"og:description\" content=\"Sign-out button for Framer that clears the user\u0026#x27;s session and tokens, redirects to any URL you choose, and ships with default, outline, and ghost styles.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Auth Plugin\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://authplugin.com/docs/components/sign-out-button\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://authplugin.mintlify.site/docs/_mintlify/api/og/v2?division=Components\u0026amp;title=Sign+Out+Button\u0026amp;description=Sign-out+button+for+Framer+that+clears+the+user%27s+session+and+tokens%2C+redirects+to+any+URL+you+choose%2C+and+ships+with+default%2C+outline%2C+and+ghost+styles.\u0026amp;theme=18ee380f071d1b6737e7f452\u0026amp;signature=eb7c56ac5c6c52a977eae9800ddf2523c149f7934a899cbc8a67b541defe7da5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Sign Out Button - Auth Plugin\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Sign-out button for Framer that clears the user\u0026#x27;s session and tokens, redirects to any URL you choose, and ships with default, outline, and ghost styles.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://authplugin.mintlify.site/docs/_mintlify/api/og/v2?division=Components\u0026amp;title=Sign+Out+Button\u0026amp;description=Sign-out+button+for+Framer+that+clears+the+user%27s+session+and+tokens%2C+redirects+to+any+URL+you+choose%2C+and+ships+with+default%2C+outline%2C+and+ghost+styles.\u0026amp;theme=18ee380f071d1b6737e7f452\u0026amp;signature=eb7c56ac5c6c52a977eae9800ddf2523c149f7934a899cbc8a67b541defe7da5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/authplugin/i1I-egUk9-jI0XNv/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Auth Plugin\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2d7a0f\">\u003clink data-mint-head rel=\"canonical\" href=\"https://authplugin.com/docs/components/sign-out-button\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/components/sign-out-button.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://authplugin.com/#organization\",\"name\":\"Auth Plugin\",\"url\":\"https://authplugin.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/authplugin/Q03O4tfEQ5ECv-mB/logo/light.svg?fit=max\u0026auto=format\u0026n=Q03O4tfEQ5ECv-mB\u0026q=85\u0026s=9b8fddac1eb7faa89f6efe290455bd9f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://authplugin.com/docs#website\",\"name\":\"Auth Plugin\",\"url\":\"https://authplugin.com/docs\",\"publisher\":{\"@id\":\"https://authplugin.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://authplugin.com/docs/components/sign-out-button#webpage\",\"url\":\"https://authplugin.com/docs/components/sign-out-button\",\"name\":\"Sign Out Button\",\"description\":\"Sign-out button for Framer that clears the user's session and tokens, redirects to any URL you choose, and ships with default, outline, and ghost styles.\",\"dateModified\":\"2026-05-14T13:09:50.116Z\",\"isPartOf\":{\"@id\":\"https://authplugin.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://authplugin.com/docs/components/sign-out-button#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://authplugin.com/docs/components/sign-out-button#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Components\",\"item\":\"https://authplugin.com/docs/components/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sign Out Button\",\"item\":\"https://authplugin.com/docs/components/sign-out-button\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://authplugin.com/docs/components/sign-out-button#article\",\"headline\":\"Sign Out Button\",\"name\":\"Sign Out Button\",\"description\":\"Sign-out button for Framer that clears the user's session and tokens, redirects to any URL you choose, and ships with default, outline, and ghost styles.\",\"url\":\"https://authplugin.com/docs/components/sign-out-button\",\"mainEntityOfPage\":{\"@id\":\"https://authplugin.com/docs/components/sign-out-button#webpage\"},\"dateModified\":\"2026-05-14T13:09:50.116Z\",\"publisher\":{\"@id\":\"https://authplugin.com/#organization\"},\"isPartOf\":{\"@id\":\"https://authplugin.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Auth Plugin\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Auth Plugin","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Getting Started","pages":[{"title":"Introduction","icon":"shield-check","href":"/introduction"},{"title":"Installation","icon":"download","href":"/getting-started/installation"},{"title":"Setup Wizard","icon":"wand-magic-sparkles","href":"/getting-started/setup-wizard"}]},{"group":"Page Guide","pages":[{"title":"Sign In Page","icon":"right-to-bracket","href":"/guide/sign-in"},{"title":"Sign Up Page","icon":"user-plus","href":"/guide/sign-up"},{"title":"Forgot Password Page","icon":"key","href":"/guide/forgot-password"},{"title":"Reset Password Page","icon":"lock","href":"/guide/reset-password"},{"title":"Dashboard (Protected)","icon":"gauge","href":"/guide/dashboard"},{"title":"Account / Profile","icon":"user","href":"/guide/account"},{"title":"OTP / Magic Link (Optional)","icon":"wand-magic-sparkles","href":"/guide/otp-magic-link"}]},{"group":"Components","pages":[{"title":"Components Overview","icon":"puzzle-piece","href":"/components/overview"},{"title":"Sign In Form","icon":"right-to-bracket","href":"/components/sign-in-form"},{"title":"Sign Up Form","icon":"user-plus","href":"/components/sign-up-form"},{"title":"Forgot Password","icon":"key","href":"/components/forgot-password"},{"title":"Reset Password","icon":"lock","href":"/components/reset-password"},{"title":"OTP Verification","icon":"fingerprint","href":"/components/otp-verification"},{"title":"Magic Link","icon":"wand-magic-sparkles","href":"/components/magic-link"},{"title":"Profile Form","icon":"user","href":"/components/profile-form"},{"title":"Avatar","icon":"circle-user","href":"/components/avatar"},{"title":"Identity Label","description":"Auth Plugin text component for Framer that shows the signed-in user's name or email, with a configurable fallback shown to unauthenticated guests.","icon":"tag","href":"/components/identity-label"},{"title":"Sign Out Button","icon":"right-from-bracket","href":"/components/sign-out-button"},{"title":"Code Overrides","description":"Apply Auth Plugin code overrides to any Framer element to toggle visibility by auth state, inject the user's name or email, or trigger a sign-out.","icon":"code","href":"/components/code-overrides"}]},{"group":"Plugin Settings","pages":[{"title":"Protected Pages","icon":"shield","href":"/settings/protected-pages"},{"title":"OAuth Setup","icon":"key","href":"/settings/oauth"},{"title":"Branding","icon":"palette","href":"/settings/branding"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]},{"tab":"Roadmap","pages":[{"title":"Roadmap","href":"/roadmap"}]}]},"basePath":"","title":"Sign Out Button - Auth Plugin","buildId":"dpl_BSPUBxEoKhhK7HzXVDPxdPvWx4xc","deploymentId":"dpl_BSPUBxEoKhhK7HzXVDPxdPvWx4xc","dynamics":[],"chunks":[]}