Skip to content

Commit

Permalink
Merge pull request #11 from adobecom/remove-access-token-from-url
Browse files Browse the repository at this point in the history
Remove access token from url when login flow is finished
  • Loading branch information
zagi25 authored May 27, 2024
2 parents cad3e27 + b95fcda commit e268877
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions eds/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ const CONFIG = {
},
};

(function removeAccessToken() {
if (window.location.hash.startsWith('#access_token')) {
window.location.hash = '';
}
}());

// Load LCP image immediately
(function loadLCPImage() {
const lcpImg = document.querySelector('img');
Expand Down

0 comments on commit e268877

Please sign in to comment.