await promises in place
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ export class JWTcontext {
|
||||
|
||||
public static async gen_key(): Promise<Key> {
|
||||
log.trace('generate key')
|
||||
return jose.generateSecret('HS512')
|
||||
return await jose.generateSecret('HS512')
|
||||
}
|
||||
public static new(key: Key): JWTcontext {
|
||||
return new JWTcontext(key)
|
||||
|
||||
Reference in New Issue
Block a user