FIX: possible crashes

This commit is contained in:
Overtorment
2019-01-05 16:16:28 +00:00
parent 2cd9a19d67
commit 2904afaf26
2 changed files with 9 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ export class User {
}
async loadByAuthorization(authorization) {
if (!authorization) return false;
let access_token = authorization.replace('Bearer ', '');
let userid = await this._redis.get('userid_for_' + access_token);