Skip to content

Commit

Permalink
Update OAuth2Helper to remove accessing the stitch prefix (#6659)
Browse files Browse the repository at this point in the history
* Update OAuth2Helper to remove accessing the stitch prefix

* Update CHANGELOG.md
  • Loading branch information
kraenhansen authored May 7, 2024
1 parent a5e797c commit b3a2525
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions packages/realm-web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

### Internal
* The base URL used to communicate with the Atlas App Services was changed from "https://realm.mongodb.com" to "https://services.cloud.mongodb.com". ([#6591](https://github.com/realm/realm-js/pull/6591))
* Avoid falling back to `_stitch_` prefixed values when parsing the querystring response from an OAuth2 redirection. ([#6659](https://github.com/realm/realm-js/pull/6659))

2.0.0 Release notes (2022-10-18)
=============================================================
Expand Down
5 changes: 0 additions & 5 deletions packages/realm-web/src/OAuth2Helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,10 @@ type RedirectResult = {
};

const REDIRECT_HASH_TO_RESULT: { [k: string]: keyof RedirectResult } = {
_stitch_client_app_id: "appId",
_baas_client_app_id: "appId",
_stitch_ua: "userAuth",
_baas_ua: "userAuth",
_stitch_link: "link",
_baas_link: "link",
_stitch_error: "error",
_baas_error: "error",
_stitch_state: "state",
_baas_state: "state",
};

Expand Down

0 comments on commit b3a2525

Please sign in to comment.