Skip to content

[Bug] Fix App Requiring Users Re-Authenticate After Successful Login (SC-190943)#47

Merged
AFOJ merged 8 commits into
mainfrom
bug/sc-190943/apps-quickbooks-app-login-does-not-persist
Jun 12, 2025
Merged

[Bug] Fix App Requiring Users Re-Authenticate After Successful Login (SC-190943)#47
AFOJ merged 8 commits into
mainfrom
bug/sc-190943/apps-quickbooks-app-login-does-not-persist

Conversation

@AFOJ

@AFOJ AFOJ commented Jun 11, 2025

Copy link
Copy Markdown
Contributor

Description

This PR addresses the following:

  • Fixes a bug in the baseRequest function resulting in the initial request failing and always requiring a refresh to succeed.
  • Improves the error message being shown to the user when on the login page with custom messages for multiple scenarios.
  • Prevents refreshing the access token when using the global proxy ("Quick Connect").
  • Fix conditional rendering logic in manifest.json

Limitations

When installed with quick connect users will not be able to refresh their access tokens so they would be required to re-authenticate more frequently.

Evidence

When a user attempts logging in with a sandbox account but the app is setup with the sandbox flag is turned off.

image

When a user attempts logging in with a sandbox account but the app is setup with Quick Connect.

image

Logging in with a sandbox account.

QuickBooks.Demo.2025-06-11.Fix.Login.Not.Persisting.mp4

When a user installs the app with advanced connect but doesn't include a client id.

image

@AFOJ
AFOJ requested a review from HappyPaul55 June 11, 2025 11:40
@AFOJ AFOJ self-assigned this Jun 11, 2025
@AFOJ AFOJ added bug Something isn't working and removed bug Something isn't working labels Jun 11, 2025
@github-actions

github-actions Bot commented Jun 11, 2025

Copy link
Copy Markdown

@AFOJ AFOJ added the bug Something isn't working label Jun 11, 2025
HappyPaul55
HappyPaul55 previously approved these changes Jun 11, 2025
@AFOJ
AFOJ requested a review from a team as a code owner June 12, 2025 09:57
@AFOJ AFOJ removed the bug Something isn't working label Jun 12, 2025
@AFOJ AFOJ changed the title [Bug ] Fix App Requiring Users Re-Authenticate After Successful Login (SC-190943) [Bug] Fix App Requiring Users Re-Authenticate After Successful Login (SC-190943) Jun 12, 2025
@AFOJ
AFOJ merged commit 9839da1 into main Jun 12, 2025
5 checks passed
@AFOJ
AFOJ deleted the bug/sc-190943/apps-quickbooks-app-login-does-not-persist branch June 12, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants