[PR #716] feat: Include error description for server errors #728

Open
opened 2026-03-03 17:29:52 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/OAuthSwift/OAuthSwift/pull/716
Author: @tsmalls93
Created: 5/15/2024
Status: 🔄 Open

Base: masterHead: tyler-error-description


📝 Commits (1)

  • c4c5967 feat: Include error description for server errors

📊 Changes

4 files changed (+8 additions, -8 deletions)

View changed files

📝 OAuthSwiftTests/OAuthSwiftErrorTest.swift (+1 -1)
📝 Sources/OAuth2Swift.swift (+2 -2)
📝 Sources/OAuthSwiftClient.swift (+1 -1)
📝 Sources/OAuthSwiftError.swift (+4 -4)

📄 Description

I am using Azure AD B2C and I need to be able to handle when the user taps the "Forgot your password?" link. When that is tapped it sends an error back to the app with an error code "AADB2C90118" that I need to look for so I can send them to a page to reset their password. Currently it treats it as a server error and I cannot access the detailed message.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/OAuthSwift/OAuthSwift/pull/716 **Author:** [@tsmalls93](https://github.com/tsmalls93) **Created:** 5/15/2024 **Status:** 🔄 Open **Base:** `master` ← **Head:** `tyler-error-description` --- ### 📝 Commits (1) - [`c4c5967`](https://github.com/OAuthSwift/OAuthSwift/commit/c4c596780e00edf7cb61d8fcfd31cc1e2d368f52) feat: Include error description for server errors ### 📊 Changes **4 files changed** (+8 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `OAuthSwiftTests/OAuthSwiftErrorTest.swift` (+1 -1) 📝 `Sources/OAuth2Swift.swift` (+2 -2) 📝 `Sources/OAuthSwiftClient.swift` (+1 -1) 📝 `Sources/OAuthSwiftError.swift` (+4 -4) </details> ### 📄 Description I am using Azure AD B2C and I need to be able to handle when the user taps the "Forgot your password?" link. When that is tapped it sends an error back to the app with an error code "AADB2C90118" that I need to look for so I can send them to a page to reset their password. Currently it treats it as a server error and I cannot access the detailed message. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#728
No description provided.