-
-
Notifications
You must be signed in to change notification settings - Fork 727
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
authhelper: record/report local/session storage #6253
base: main
Are you sure you want to change the base?
Conversation
""" | ||
const data = []; | ||
for (let i = 0; i < window.localStorage.length; i++) { | ||
data.push({"key": window.localStorage.key(i), "value": window.localStorage.getItem(window.localStorage.key(i))}); | ||
} | ||
return data; | ||
""", | ||
DiagnosticBrowserStorageItem.Type.LOCAL); | ||
|
||
processStorage( | ||
je, | ||
""" | ||
const data = []; | ||
for (let i = 0; i < sessionStorage.length; i++) { | ||
data.push({"key": sessionStorage.key(i), "value": sessionStorage.getItem(sessionStorage.key(i))}); | ||
} | ||
return data; | ||
""", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a single or constant string and a variable for the storage type/location and insert it via format?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not 100% sure this is what you meant but it addresses the duplication.
Great job, no security vulnerabilities found in this Pull Request |
9adf5a5
to
ce6d902
Compare
Record and report the state of the local/session storage for the authentication diagnostics. Signed-off-by: thc202 <[email protected]>
ce6d902
to
def771d
Compare
Record and report the state of the local/session storage for the authentication diagnostics.