Merge pull request from GHSA-23r4-5mxp-c7g5 (#7497)
* Merge pull request from GHSA-23r4-5mxp-c7g5 * add anonymous login security fix * add changelog entry * update changelog * Update package.json (#7498) * Update package-lock.json (#7499) Co-authored-by: Corey <coreyearleon@icloud.com>
This commit is contained in:
committed by
GitHub
parent
c66a39fadc
commit
fc0fef5922
@@ -857,6 +857,10 @@ RestWrite.prototype.createSessionToken = async function () {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.storage['authProvider'] == null && this.data.authData) {
|
||||
this.storage['authProvider'] = Object.keys(this.data.authData).join(',');
|
||||
}
|
||||
|
||||
const { sessionData, createSession } = RestWrite.createSession(this.config, {
|
||||
userId: this.objectId(),
|
||||
createdWith: {
|
||||
|
||||
Reference in New Issue
Block a user