Identify your app’s authentication provider, compare development and production sign-in, and safely investigate redirects, missing users, and domain errors.
This guide covers users signing in to an app you built. For problems signing
in to your Replit account, see Account and access.
Your own Clerk account or another provider: check that provider’s configuration as well as the app.
For Clerk, confirm whether Agent provisioned the integration or you supplied
credentials from your own Clerk account. Do not mix configuration from the two.
Do not delete or recreate an authentication tenant to fix a sign-in error.
Deleting a tenant can delete user accounts. Do not switch providers or replace
credentials without a migration plan for existing users.
Sign-in works in Preview but fails after publishing
Test Preview and the published app separately. Record the exact failure.
For Clerk, check that the intended development or production environment is selected.
Their users and configuration are separate.
Check that the published app has the required auth environment variables.
Inspect names and configuration status; do not paste their values into chat.
If using your own provider, compare the allowed origins and callback URLs
with the exact published hostname and protocol.
Publish any intended configuration change, then test in a fresh browser session.
For an OAuth redirect_uri_mismatch, compare the actual redirect URI with the
provider’s registered URI. Do not guess a callback path or add wildcard access
as a workaround.
Test another enabled sign-in method to isolate the failure. Check the failing
provider’s setup for the correct environment, domain, and callback URI.
For managed Clerk, follow Clerk Auth
rather than creating a replacement tenant.
Confirm the project, authentication provider, and environment before changing
anything. A development account does not demonstrate that the same account
exists in production. A copied or remixed project may use different auth
configuration; do not assume users migrated with the code.
First test the default published URL. If only the custom domain fails, follow
the domain guide, then verify the auth provider’s
domain configuration. Hosting DNS and authentication DNS are separate checks.If a domain is reported as already attached to another auth application,
contact Support for a managed integration, or your provider for a self-managed
one. Do not delete the old application just to release the domain.
Check the address, spam folder, and whether the account exists in the intended
environment. Record any error or rate-limit message before retrying. Avoid
rapidly requesting more codes, and never share a verification code with Support.
Include the provider and management mode, environment, failing sign-in method,
affected hostname, sanitized error, and time with timezone. State whether other
methods work. Do not include tokens, cookies, credentials, or user lists.
Use the support checklist.
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Replit","colors":{"primary":"#FF3C00","light":"#FF3C00","dark":"#FF3C00"},"logo":{"light":"https://mintcdn.com/replit/j4of5To8jzehz0JK/logo/light.svg?fit=max\u0026auto=format\u0026n=j4of5To8jzehz0JK\u0026q=85\u0026s=6209cb5927b56fd1781133af05428373","dark":"https://mintcdn.com/replit/j4of5To8jzehz0JK/logo/dark.svg?fit=max\u0026auto=format\u0026n=j4of5To8jzehz0JK\u0026q=85\u0026s=9cbba158300d48c49d8b888e71015495","href":"/welcome"},"favicon":"https://mintcdn.com/replit/CmOMKRnamiqG44eH/favicon.ico?fit=max\u0026auto=format\u0026n=CmOMKRnamiqG44eH\u0026q=85\u0026s=c89a6df6f537373c946c7a5f0ac65475","appearance":{"default":"light"},"background":{"color":{"light":"#F6F5F4","dark":"#1E1E1F"}},"navbar":{"links":[],"primary":{"type":"button","label":"Start Building","href":"https://replit.com?ref=docs"}},"footer":{"socials":{"x":"https://x.com/replit","linkedin":"https://www.linkedin.com/company/repl-it","youtube":"https://www.youtube.com/@replit"}},"seo":{"metatags":{"og:site_name":"Replit Docs","twitter:site":"@replit","twitter:creator":"@replit","author":"Replit"},"indexing":"all"},"fonts":{"heading":{"family":"ABC Diatype Plus","weight":400,"source":"https://cdn.replit.com/dotcom/fonts/ABCDiatypePlusVariable.woff2","format":"woff2"},"body":{"family":"ABC Diatype Plus","weight":400,"source":"https://cdn.replit.com/dotcom/fonts/ABCDiatypePlusVariable.woff2","format":"woff2"}},"integrations":{"segment":{"key":"dMePKGC4BqfBivpe0Hvl8IoPpzSHgjdX"}},"contextual":{"options":["copy","view"],"display":"header"},"thumbnails":{"appearance":"light","background":"https://mintcdn.com/replit/j4of5To8jzehz0JK/thumb.png?fit=max\u0026auto=format\u0026n=j4of5To8jzehz0JK\u0026q=85\u0026s=a7db7f0256b2fa06810fb4d378e63cc5","fonts":{"family":"ABC Diatype Plus"}},"styling":{"latex":true},"navigation":{"languages":[{"language":"en","href":"welcome"},{"language":"fr","navbar":{"links":[],"primary":{"type":"button","label":"Commencer à créer","href":"https://replit.com?ref=docs"}},"href":"fr/welcome"},{"language":"pt","hidden":false,"navbar":{"links":[],"primary":{"type":"button","label":"Comece a criar","href":"https://replit.com?ref=docs"}},"href":"pt/welcome"},{"language":"ja","hidden":false,"navbar":{"links":[],"primary":{"type":"button","label":"作成を開始","href":"https://replit.com?ref=docs"}},"href":"ja/welcome"},{"language":"ko","hidden":false,"navbar":{"links":[],"primary":{"type":"button","label":"빌드 시작하기","href":"https://replit.com?ref=docs"}},"href":"ko/welcome"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"replit","hasAudioNarration":false,"actualSubdomain":"replit","customDomains":["docs.replit.com","docs.repl.it"],"gitSource":{"type":"github","owner":"replit","repo":"replit-docs","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":true,"edits":false},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6af05876198d4fbfea6de5df","clientVersion":"0.0.4088","searchFilterCounts":[{"language":"en","tag":"Features","count":360},{"language":"fr","tag":"Fonctionnalités","count":360},{"language":"ja","tag":"機能","count":360},{"language":"ko","tag":"기능","count":360},{"language":"pt","tag":"Funcionalidades","count":360},{"language":"en","tag":"Changelog","count":100},{"language":"fr","tag":"Journal des modifications","count":100},{"language":"ja","tag":"変更履歴","count":100},{"language":"ko","tag":"변경 내역","count":100},{"language":"pt","tag":"Registro de alterações","count":100},{"language":"en","tag":"Apps","count":41},{"language":"fr","tag":"Apps","count":41},{"language":"ja","tag":"Apps","count":41},{"language":"ko","tag":"Apps","count":41},{"language":"pt","tag":"Apps","count":41},{"language":"en","tag":"Enterprise","count":40},{"language":"fr","tag":"Entreprise","count":40},{"language":"ja","tag":"Enterprise","count":40},{"language":"ko","tag":"Enterprise","count":40},{"language":"pt","tag":"Enterprise","count":40},{"language":"en","tag":"Use cases","count":39},{"language":"fr","tag":"Use cases","count":39},{"language":"ja","tag":"Use cases","count":39},{"language":"ko","tag":"Use cases","count":39},{"language":"pt","tag":"Use cases","count":39},{"language":"en","tag":"Chats","count":25},{"language":"en","tag":"Designs","count":25},{"language":"fr","tag":"Chats","count":25},{"language":"fr","tag":"Designs","count":25},{"language":"ja","tag":"Chats","count":25},{"language":"ja","tag":"Designs","count":25},{"language":"ko","tag":"Chats","count":25},{"language":"ko","tag":"Designs","count":25},{"language":"pt","tag":"Chats","count":25},{"language":"pt","tag":"Designs","count":25},{"language":"en","tag":"Trust \u0026 Billing","count":23},{"language":"fr","tag":"Confiance et facturation","count":23},{"language":"ja","tag":"信頼と請求","count":23},{"language":"ko","tag":"신뢰 및 결제","count":23},{"language":"pt","tag":"Confiança e faturamento","count":23},{"language":"en","tag":"Web","count":22},{"language":"fr","tag":"Web","count":22},{"language":"ja","tag":"Web","count":22},{"language":"ko","tag":"Web","count":22},{"language":"pt","tag":"Web","count":22},{"language":"en","tag":"Help","count":20},{"language":"fr","tag":"Help","count":20},{"language":"ja","tag":"Help","count":20},{"language":"ko","tag":"Help","count":20},{"language":"pt","tag":"Help","count":20}]},"assistantConfig":{"deflection":{"enabled":true,"email":"support@replit.com"}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","href":"/_mintlify/custom/replit/795eee5cda55dee3/styles.css"}],"page":{"pagePath":"help/troubleshooting/auth","slug":"/help/troubleshooting/auth","pageMetadata":{"title":"Troubleshoot app authentication","sidebarTitle":"App authentication","description":"Identify your app's authentication provider, compare development and production sign-in, and safely investigate redirects, missing users, and domain errors.","href":"/help/troubleshooting/auth"},"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: \"Identify your app’s authentication provider, compare development and production sign-in, and safely investigate redirects, missing users, and domain errors.\"\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={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`This guide covers users signing in to an app you built. For problems signing\nin to your Replit account, see `,_jsx(_components.a,{href:`/help/account-and-access`,children:`Account and access`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`identify-the-authentication-system-first`,children:`Identify the authentication system first`}),`\n`,_jsx(_components.p,{children:`Ask Agent: “Does this app use Replit Auth, Replit-managed Clerk Auth, or a\nseparately configured authentication provider?”`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.a,{href:`/features/auth-and-identity/authentication`,children:`Replit Auth`}),`:`]}),` users sign in with Replit accounts.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[_jsx(_components.a,{href:`/features/auth-and-identity/clerk-auth`,children:`Replit-managed Clerk Auth`}),`:`]}),` your app has its own user accounts and managed auth configuration.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Your own Clerk account or another provider:`}),` check that provider’s configuration as well as the app.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`For Clerk, confirm whether Agent provisioned the integration or you supplied\ncredentials from your own Clerk account. Do not mix configuration from the two.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Do not delete or recreate an authentication tenant to fix a sign-in error.\nDeleting a tenant can delete user accounts. Do not switch providers or replace\ncredentials without a migration plan for existing users.`})}),`\n`,_jsx(Heading,{level:`2`,id:`sign-in-works-in-preview-but-fails-after-publishing`,children:`Sign-in works in Preview but fails after publishing`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Test Preview and the published app separately. Record the exact failure.`}),`\n`,_jsx(_components.li,{children:`For Clerk, check that the intended development or production environment is selected.\nTheir users and configuration are separate.`}),`\n`,_jsx(_components.li,{children:`Check that the published app has the required auth environment variables.\nInspect names and configuration status; do not paste their values into chat.`}),`\n`,_jsx(_components.li,{children:`If using your own provider, compare the allowed origins and callback URLs\nwith the exact published hostname and protocol.`}),`\n`,_jsx(_components.li,{children:`Publish any intended configuration change, then test in a fresh browser session.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`For an OAuth `,_jsx(_components.code,{children:`redirect_uri_mismatch`}),`, compare the actual redirect URI with the\nprovider’s registered URI. Do not guess a callback path or add wildcard access\nas a workaround.`]}),`\n`,_jsx(Heading,{level:`2`,id:`only-one-social-sign-in-provider-fails`,children:`Only one social sign-in provider fails`}),`\n`,_jsxs(_components.p,{children:[`Test another enabled sign-in method to isolate the failure. Check the failing\nprovider’s setup for the correct environment, domain, and callback URI.\nFor managed Clerk, follow `,_jsx(_components.a,{href:`/features/auth-and-identity/clerk-auth`,children:`Clerk Auth`}),`\nrather than creating a replacement tenant.`]}),`\n`,_jsx(Heading,{level:`2`,id:`users-appear-to-be-missing`,children:`Users appear to be missing`}),`\n`,_jsx(_components.p,{children:`Confirm the project, authentication provider, and environment before changing\nanything. A development account does not demonstrate that the same account\nexists in production. A copied or remixed project may use different auth\nconfiguration; do not assume users migrated with the code.`}),`\n`,_jsx(Heading,{level:`2`,id:`a-custom-domain-causes-sign-in-errors`,children:`A custom domain causes sign-in errors`}),`\n`,_jsxs(_components.p,{children:[`First test the default published URL. If only the custom domain fails, follow\nthe `,_jsx(_components.a,{href:`/help/troubleshooting/domains`,children:`domain guide`}),`, then verify the auth provider’s\ndomain configuration. Hosting DNS and authentication DNS are separate checks.`]}),`\n`,_jsx(_components.p,{children:`If a domain is reported as already attached to another auth application,\ncontact Support for a managed integration, or your provider for a self-managed\none. Do not delete the old application just to release the domain.`}),`\n`,_jsx(Heading,{level:`2`,id:`verification-emails-do-not-arrive`,children:`Verification emails do not arrive`}),`\n`,_jsx(_components.p,{children:`Check the address, spam folder, and whether the account exists in the intended\nenvironment. Record any error or rate-limit message before retrying. Avoid\nrapidly requesting more codes, and never share a verification code with Support.`}),`\n`,_jsx(Heading,{level:`2`,id:`still-failing`,children:`Still failing?`}),`\n`,_jsxs(_components.p,{children:[`Include the provider and management mode, environment, failing sign-in method,\naffected hostname, sanitized error, and time with timezone. State whether other\nmethods work. Do not include tokens, cookies, credentials, or user lists.\nUse the `,_jsx(_components.a,{href:`/help/troubleshooting/overview#when-to-contact-support`,children:`support checklist`}),`.`]})]})}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":"Troubleshoot app authentication","sidebarTitle":"App authentication","description":"Identify your app's authentication provider, compare development and production sign-in, and safely investigate redirects, missing users, and domain errors.","href":"/help/troubleshooting/auth"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Identify the authentication system first","slug":"identify-the-authentication-system-first","depth":2,"children":[]},{"title":"Sign-in works in Preview but fails after publishing","slug":"sign-in-works-in-preview-but-fails-after-publishing","depth":2,"children":[]},{"title":"Only one social sign-in provider fails","slug":"only-one-social-sign-in-provider-fails","depth":2,"children":[]},{"title":"Users appear to be missing","slug":"users-appear-to-be-missing","depth":2,"children":[]},{"title":"A custom domain causes sign-in errors","slug":"a-custom-domain-causes-sign-in-errors","depth":2,"children":[]},{"title":"Verification emails do not arrive","slug":"verification-emails-do-not-arrive","depth":2,"children":[]},{"title":"Still failing?","slug":"still-failing","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"replit","siteName":"Replit","title":"Troubleshoot app authentication - Replit","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/help/troubleshooting/auth","matchLevel":0},"fr":{"href":"/fr/help/troubleshooting/auth","matchLevel":1},"pt":{"href":"/pt/help/troubleshooting/auth","matchLevel":1},"ja":{"href":"/ja/help/troubleshooting/auth","matchLevel":1},"ko":{"href":"/ko/help/troubleshooting/auth","matchLevel":1}}},"lastModified":"2026-10-19T20:52:36.456Z","originalFileLocation":"help/troubleshooting/auth.mdx","locale":"en"},"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=\"light\"}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=\"Identify your app\u0026#x27;s authentication provider, compare development and production sign-in, and safely investigate redirects, missing users, and domain errors.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Replit\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/replit/bmCuvIiWqqoyeE2o/_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=\"/mintlify-assets/_mintlify/favicons/replit/bmCuvIiWqqoyeE2o/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/replit/bmCuvIiWqqoyeE2o/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/replit/bmCuvIiWqqoyeE2o/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/replit/bmCuvIiWqqoyeE2o/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/replit/bmCuvIiWqqoyeE2o/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/replit/bmCuvIiWqqoyeE2o/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/replit/bmCuvIiWqqoyeE2o/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/replit/bmCuvIiWqqoyeE2o/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Troubleshoot app authentication - Replit\">\u003cmeta data-mint-head property=\"og:description\" content=\"Identify your app\u0026#x27;s authentication provider, compare development and production sign-in, and safely investigate redirects, missing users, and domain errors.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Replit Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.replit.com/help/troubleshooting/auth\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://replit.mintlify.site/_mintlify/api/og/v2?division=Troubleshooting+guides\u0026amp;title=Troubleshoot+app+authentication\u0026amp;description=Identify+your+app%27s+authentication+provider%2C+compare+development+and+production+sign-in%2C+and+safely+investigate+redirects%2C+missing+users%2C+and+domain+errors.\u0026amp;theme=c1942b8f9ebd95f98c5c7c23\u0026amp;signature=0cdc3155e750ce4185588ca197f55917ed024bc7b2daab5983a746af7d64f844\">\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=\"Troubleshoot app authentication - Replit\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Identify your app\u0026#x27;s authentication provider, compare development and production sign-in, and safely investigate redirects, missing users, and domain errors.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://replit.mintlify.site/_mintlify/api/og/v2?division=Troubleshooting+guides\u0026amp;title=Troubleshoot+app+authentication\u0026amp;description=Identify+your+app%27s+authentication+provider%2C+compare+development+and+production+sign-in%2C+and+safely+investigate+redirects%2C+missing+users%2C+and+domain+errors.\u0026amp;theme=c1942b8f9ebd95f98c5c7c23\u0026amp;signature=0cdc3155e750ce4185588ca197f55917ed024bc7b2daab5983a746af7d64f844\">\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=\"/mintlify-assets/_mintlify/favicons/replit/bmCuvIiWqqoyeE2o/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Replit\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF3C00\">\u003cmeta data-mint-head name=\"twitter:creator\" content=\"@replit\">\u003cmeta data-mint-head name=\"author\" content=\"Replit\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.replit.com/help/troubleshooting/auth\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/help/troubleshooting/auth.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.replit.com/help/troubleshooting/auth\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.replit.com/fr/help/troubleshooting/auth\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt\" href=\"https://docs.replit.com/pt/help/troubleshooting/auth\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://docs.replit.com/ja/help/troubleshooting/auth\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://docs.replit.com/ko/help/troubleshooting/auth\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.replit.com/help/troubleshooting/auth\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.replit.com/#organization\",\"name\":\"Replit\",\"url\":\"https://docs.replit.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/replit/j4of5To8jzehz0JK/logo/light.svg?fit=max\u0026auto=format\u0026n=j4of5To8jzehz0JK\u0026q=85\u0026s=6209cb5927b56fd1781133af05428373\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.replit.com#website\",\"name\":\"Replit\",\"url\":\"https://docs.replit.com\",\"publisher\":{\"@id\":\"https://docs.replit.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.replit.com/help/troubleshooting/auth#webpage\",\"url\":\"https://docs.replit.com/help/troubleshooting/auth\",\"name\":\"Troubleshoot app authentication\",\"description\":\"Identify your app's authentication provider, compare development and production sign-in, and safely investigate redirects, missing users, and domain errors.\",\"dateModified\":\"2026-10-19T20:52:36.456Z\",\"isPartOf\":{\"@id\":\"https://docs.replit.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.replit.com/help/troubleshooting/auth#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.replit.com/help/troubleshooting/auth#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Help center\",\"item\":\"https://docs.replit.com/help/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Troubleshooting guides\",\"item\":\"https://docs.replit.com/help/troubleshooting/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Troubleshoot app authentication\",\"item\":\"https://docs.replit.com/help/troubleshooting/auth\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.replit.com/help/troubleshooting/auth#article\",\"headline\":\"Troubleshoot app authentication\",\"name\":\"Troubleshoot app authentication\",\"description\":\"Identify your app's authentication provider, compare development and production sign-in, and safely investigate redirects, missing users, and domain errors.\",\"url\":\"https://docs.replit.com/help/troubleshooting/auth\",\"mainEntityOfPage\":{\"@id\":\"https://docs.replit.com/help/troubleshooting/auth#webpage\"},\"dateModified\":\"2026-10-19T20:52:36.456Z\",\"publisher\":{\"@id\":\"https://docs.replit.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.replit.com#website\"}}]}\u003c/script>","siteName":"Replit","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Home","pages":[{"title":"Home","href":"/welcome"}]},{"tab":"Chats","pages":[{"title":"Chats","href":"/chat/overview"}]},{"tab":"Apps","dropdowns":[{"dropdown":"Web","icon":"globe","pages":[{"group":"Quickstarts","pages":[{"title":"Build your first app","sidebarTitle":"Build your first app","icon":"rocket","href":"/build/your-first-app"},{"title":"Build and publish from a template","sidebarTitle":"Build from a template","icon":"palette","href":"/build/build-and-publish-from-template"},{"title":"Build with Free Mode","sidebarTitle":"Build with Free Mode","icon":"seedling","href":"/build/build-with-free-mode"},{"title":"Publish your app","sidebarTitle":"Publish your app","icon":"cloud-arrow-up","href":"/build/publish-your-app"}]},{"group":"Build paths","pages":[{"title":"Prototype a product idea","sidebarTitle":"Prototype an idea","icon":"lightbulb","href":"/build/prototype-an-idea"},{"title":"Launch a landing page","sidebarTitle":"Launch a landing page","icon":"rectangle-list","href":"/build/landing-page"},{"title":"Build a Shopify storefront","sidebarTitle":"Build a Shopify storefront","icon":"bag-shopping","href":"/build/ecommerce-store"},{"title":"Create a dashboard from data","sidebarTitle":"Create a dashboard","icon":"chart-simple","href":"/build/dashboard"},{"title":"Build a mobile app","sidebarTitle":"Build a mobile app","icon":"mobile-screen","href":"/build/mobile-app"}]},{"group":"Grow your app","pages":[{"title":"Add login","sidebarTitle":"Add login","icon":"user-lock","href":"/build/add-login"},{"title":"Add a database","sidebarTitle":"Add a database","icon":"database","href":"/build/add-database"},{"title":"Add integrations","sidebarTitle":"Add integrations","icon":"plug","href":"/build/add-integrations"},{"title":"Add a custom domain","sidebarTitle":"Add a custom domain","icon":"globe","href":"/build/add-custom-domain"}]},{"group":"Publish and operate","pages":[{"title":"Purchase a domain","sidebarTitle":"Purchase a domain","icon":"cart-shopping","href":"/build/domain-purchasing"},{"title":"Enable Feedback Widget","sidebarTitle":"Enable Feedback Widget","icon":"comment","href":"/build/enable-feedback"},{"title":"Improve your app's SEO","sidebarTitle":"Improve SEO","icon":"magnifying-glass-chart","href":"/build/improve-seo"},{"title":"Troubleshoot publishing","icon":"triangle-exclamation","href":"/build/troubleshooting"}]},{"group":"Connect \u0026 integrate","pages":[{"title":"Use Agent Skills","sidebarTitle":"Use Agent Skills","icon":"puzzle-piece","href":"/build/use-agent-skills"},{"title":"Connect via MCP","sidebarTitle":"Connect via MCP","icon":"server","href":"/build/connect-via-mcp"}]},{"group":"Collaborate","pages":[{"title":"Invite teammates","sidebarTitle":"Invite teammates","icon":"user-plus","href":"/build/invite-teammates"},{"title":"Create a team workspace","sidebarTitle":"Create a team workspace","icon":"users-rectangle","href":"/build/create-a-team-workspace"}]},{"group":"Import","pages":[{"title":"Import from a provider","sidebarTitle":"Import from a provider","icon":"file-import","href":"/build/import-from-providers"}]}]},{"dropdown":"Mobile","icon":"mobile","groups":[{"group":"Quickstarts","pages":[{"title":"Start your first mobile app","sidebarTitle":"Start your mobile app","icon":"wand-magic-sparkles","href":"/build/mobile-first-app"},{"title":"Preview and test on your phone","sidebarTitle":"Test with Expo Go","icon":"mobile","href":"/build/mobile-preview-testing"}]},{"group":"Publish for iOS","pages":[{"title":"Set up your Apple Developer account","sidebarTitle":"Set up your account","icon":"apple","href":"/build/mobile-apple-account"},{"title":"Upload your app to App Store Connect","sidebarTitle":"Upload your app","icon":"cloud-arrow-up","href":"/build/mobile-upload-ios"},{"title":"Beta test with TestFlight","sidebarTitle":"Test on TestFlight","icon":"flask","href":"/build/mobile-testflight"},{"title":"Submit to the App Store","sidebarTitle":"Submit for App Store","icon":"paper-plane","href":"/build/mobile-publish-ios"}]},{"group":"Add features and grow your app","pages":[{"title":"Add login","sidebarTitle":"Add login","icon":"right-to-bracket","href":"/build/mobile-login"},{"title":"Add payments with RevenueCat","sidebarTitle":"Add payments","icon":"credit-card","href":"/build/mobile-payments"},{"title":"Store images in your mobile app","sidebarTitle":"Save player images","icon":"image","href":"/build/mobile-store-images"},{"title":"Add haptics","sidebarTitle":"Add haptics","icon":"wave-square","href":"/build/mobile-haptics"},{"title":"Use iOS native components","sidebarTitle":"Use native UI","icon":"apple","href":"/build/mobile-native-components"},{"title":"Use the camera","sidebarTitle":"Add camera","icon":"camera","href":"/build/mobile-camera"},{"title":"Access contacts","sidebarTitle":"Add contacts","icon":"address-book","href":"/build/mobile-contacts"},{"title":"Send push notifications","sidebarTitle":"Send notifications","icon":"bell","href":"/build/mobile-push-notifications"},{"title":"Collect reviews and ratings","sidebarTitle":"Collect reviews","icon":"star","href":"/build/mobile-collect-reviews"}]},{"group":"Design","pages":[{"title":"Design your app","sidebarTitle":"Design your app","icon":"palette","href":"/build/mobile-design"},{"title":"Generate an app icon","sidebarTitle":"Generate app icon","icon":"image","href":"/build/mobile-app-icon"},{"title":"Generate App Store screenshots","sidebarTitle":"Generate store assets","icon":"images","href":"/build/mobile-store-screenshots"}]},{"group":"Collaborate","pages":[{"title":"Build PixelGames with a team","sidebarTitle":"Invite your team","icon":"users","href":"/build/mobile-invite-team"}]}]}]},{"tab":"Code","pages":[{"title":"Code","href":"/build/code/code-with-replit"}]},{"tab":"Designs","pages":[{"title":"Designs","href":"/design/what-is-replit-design"}]},{"tab":"Use cases","pages":[{"title":"Use cases","href":"/use-cases"}]},{"tab":"Learn","pages":[{"title":"Learn","href":"/learn/foundations/what-is-an-app"}]},{"tab":"Features","anchors":[{"anchor":"Features","icon":"book-open","pages":[{"title":"Features","href":"/features/collaboration/workspaces"}]},{"anchor":"Changelog","icon":"clock-rotate-left","pages":[{"title":"Changelog","href":"/updates/2026/11/06/changelog"}]},{"anchor":"Help","icon":"circle-question","groups":[{"group":"Help center","pages":[{"title":"Help center","sidebarTitle":"Overview","icon":"circle-question","href":"/help/overview"},{"title":"Billing and refunds","sidebarTitle":"Billing and refunds","icon":"receipt","href":"/help/billing-and-refunds"},{"title":"Pricing and plans","sidebarTitle":"Pricing and plans","icon":"tags","href":"/help/pricing-and-plans"},{"title":"Subscriptions","sidebarTitle":"Subscriptions","icon":"rotate","href":"/help/subscriptions"},{"title":"Agent and AI","sidebarTitle":"Agent and AI","icon":"robot","href":"/help/agent-and-ai"},{"title":"Free Agent Mode","sidebarTitle":"Free Agent Mode","icon":"message-bot","href":"/help/free-agent-mode"},{"title":"Deployment and publishing","sidebarTitle":"Deployment and publishing","icon":"rocket","href":"/help/deployment-and-publishing"},{"title":"Payments and Stripe","sidebarTitle":"Payments and Stripe","icon":"credit-card","href":"/help/payments-and-stripe"},{"title":"Database","sidebarTitle":"Database","icon":"database","href":"/help/database"},{"title":"Custom domains and DNS","sidebarTitle":"Custom domains and DNS","icon":"globe","href":"/help/custom-domains-and-dns"},{"title":"Networking and app errors","sidebarTitle":"Networking and app errors","icon":"triangle-exclamation","href":"/help/networking-and-app-errors"},{"title":"Resolving \"This app is blocked\" for Google Connectors","sidebarTitle":"Google Suite Errors","icon":"bug","href":"/features/troubleshooting/debugging-google-connectors"},{"title":"Fixing Salesforce Connection Expired Errors","sidebarTitle":"Salesforce Errors","icon":"bug","href":"/features/troubleshooting/debugging-salesforce-connectors"},{"title":"Account and access","sidebarTitle":"Account and access","icon":"user","href":"/help/account-and-access"},{"title":"Projects and files","sidebarTitle":"Projects and files","icon":"folder","href":"/help/projects-and-files"},{"group":"Troubleshooting guides","pages":[{"title":"Troubleshooting guides","sidebarTitle":"Troubleshooting overview","href":"/help/troubleshooting/overview"},{"title":"Troubleshoot deployments","sidebarTitle":"Deployments","description":"Diagnose failed publishing, startup and health-check failures, 502 responses, and Preview differences using logs before changing your published Replit app.","href":"/help/troubleshooting/deployments"},{"title":"Troubleshoot app authentication","sidebarTitle":"App authentication","href":"/help/troubleshooting/auth"},{"title":"Troubleshoot databases","sidebarTitle":"Databases","description":"Safely investigate database connection failures, paused endpoints, missing production data, and recovery options without deleting or overwriting your data.","href":"/help/troubleshooting/databases"},{"title":"Troubleshoot domains","sidebarTitle":"Domains","href":"/help/troubleshooting/domains"}]}]}]}]},{"tab":"Trust \u0026 Billing","pages":[{"title":"Trust \u0026 Billing","href":"/category/billing"}]},{"tab":"Enterprise","pages":[{"title":"Enterprise","href":"/teams/welcome"}]}]},{"language":"fr","navbar":{"links":[],"primary":{"type":"button","label":"Commencer à créer","href":"https://replit.com?ref=docs"}},"pages":[{"title":"fr","href":"/fr/help/troubleshooting/auth"}]},{"language":"pt","navbar":{"links":[],"primary":{"type":"button","label":"Comece a criar","href":"https://replit.com?ref=docs"}},"hidden":false,"pages":[{"title":"pt","href":"/pt/help/troubleshooting/auth"}]},{"language":"ja","navbar":{"links":[],"primary":{"type":"button","label":"作成を開始","href":"https://replit.com?ref=docs"}},"hidden":false,"pages":[{"title":"ja","href":"/ja/help/troubleshooting/auth"}]},{"language":"ko","navbar":{"links":[],"primary":{"type":"button","label":"빌드 시작하기","href":"https://replit.com?ref=docs"}},"hidden":false,"pages":[{"title":"ko","href":"/ko/help/troubleshooting/auth"}]}]},"basePath":"","title":"Troubleshoot app authentication - Replit","buildId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","deploymentId":"dpl_DTau1J5HqS9UTgVSDwGksstFWtPa","dynamics":[],"chunks":[]}