Skip to content

Update OAuth2Helper to remove accessing the stitch prefix #6659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading