Bug: the following peace of code breaks the parser
nnixaa opened this issue · comments
protected validateToken(module: string) {
return map((res) => {
const token = this.getConfigValue('token.getter')(module, res);
if (!token) {
const key = this.getConfigValue('token.key');
console.warn(`NbEmailPassAuthProvider:
Token is not provided under '${key}' key
with getter '${this.getConfigValue('token.getter')}', check your auth configuration.`);
throw new Error('Could not extract token from the response.');
}
return res;
});
}