Skip to content
Lovelace

Auth Troubleshooting

What This Is#

A symptom-driven debugging guide for Sign in with Lovelace.

Who This Is For#

Developers investigating auth integration failures.

What You Will Finish With#

  • Faster diagnosis of common failures.
  • Exact, actionable fixes.

Symptom: Sign-In Fails in Production#

Diagnosis: Missing NEXT_PUBLIC_LOVELACE_OAUTH_CLIENT_ID.

Fix: Set the variable to a registered client ID.

Symptom: Verify Route Returns Unauthorized#

Diagnosis: Audience or issuer mismatch.

Fix: Ensure verify route audience equals registered client ID and issuer matches Accounts issuer.

Symptom: Browser Always Redirects#

Diagnosis: FedCM unsupported or disabled by browser policy.

Fix: Expected fallback behavior. Keep redirect flow configured.

Symptom: Session Not Established After Verification#

Diagnosis: App route verified token but did not persist session.

Fix: Ensure successful verification path sets app session cookie/state.

Symptom: Creating or Editing an App Fails With developer_approval_required#

Diagnosis: Your developer account is waiting for review, and the app asks for something that needs approval: a redirect URI that is not on localhost, 127.x.x.x, or [::1], or the device authorization grant (urn:ietf:params:oauth:grant-type:device_code), which signs in anyone who enters the app's code. The response lists the redirect URIs in non_loopback_redirect_uris and the grant types in grant_types_requiring_approval.

Fix: Keep developing with localhost redirect URIs and the authorization code grant, which work now. Add the production redirect URI or the device grant once the account is approved; see Going live.

Symptom: Creating an App Fails With developer_not_approved#

Diagnosis: The developer account was rejected or suspended.

Fix: Contact support to have the account reviewed again.