Merge pull request from GHSA-h4mf-75hf-67w4
* Fix session token issue * verify email problem * Fix password reset problem * Change test file name * Split tests * Refetch user * Replaces lets to consts * Refactor unit test What you have is just finee, but wanted to show you what I meant with my comment Use jasmine's this to set stuff in beforeEach's Not that all functions need to be `function ()` instead of `() =>` so `this` is preserved. see: https://jasmine.github.io/tutorials/your_first_suite#section-The_%3Ccode%3Ethis%3C/code%3E_keyword Co-authored-by: Antonio Davi Macedo Coelho de Castro <adavimacedo@gmail.com>
This commit is contained in:
@@ -105,6 +105,10 @@ export function handleParseHeaders(req, res, next) {
|
||||
}
|
||||
}
|
||||
|
||||
if (info.sessionToken && typeof info.sessionToken !== 'string') {
|
||||
info.sessionToken = info.sessionToken.toString();
|
||||
}
|
||||
|
||||
if (info.clientVersion) {
|
||||
info.clientSDK = ClientSDK.fromString(info.clientVersion);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user