Skip to content

Conversation

@partha-uber
Copy link

Modified AuthProvider to allow authentication to continue when Pushed Authorization Request (PAR) fails. Previously, PAR failures would throw an exception and block the entire authentication flow. Now, if PAR fails (due to network errors or server issues), authentication proceeds without user metadata pre-fill, improving user experience and system resilience.

Changes:

  • Wrapped PAR request in try-catch to handle errors gracefully
  • Return empty PARResponse on failure instead of throwing exception
  • Added comprehensive unit tests for PAR error scenarios
  • Verified existing tests still pass (regression testing)

🤖 Generated with Claude Code

Description:

Related issue(s):

@CLAassistant
Copy link

CLAassistant commented Jan 10, 2026

CLA assistant check
All committers have signed the CLA.

…out metadata

Modified AuthProvider to allow authentication to continue when Pushed Authorization Request (PAR) fails. Previously, PAR failures would throw an exception and block the entire authentication flow. Now, if PAR fails (due to network errors or server issues), authentication proceeds without user metadata pre-fill, improving user experience and system resilience.

Changes:
- Wrapped PAR request in try-catch to handle errors gracefully
- Return empty PARResponse on failure instead of throwing exception
- Added comprehensive unit tests for PAR error scenarios
- Verified existing tests still pass (regression testing)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@partha-uber partha-uber force-pushed the sirker-par-graceful-handling branch from c756214 to 28e3a58 Compare January 13, 2026 19:03
Applied spotless formatting to resolve CI check failures:
- Fixed elvis operator chain formatting in AuthActivity.onCreate()
- Added newline at end of gradle.properties

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

3 participants