mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-24 22:56:26 -08:00
bump token length to 36bytes
This commit is contained in:
parent
11602b5556
commit
261b81ee04
|
@ -12,7 +12,7 @@ export interface AuthToken {
|
|||
export function create(id:string,expire:number=(24*60*60*1000)) {
|
||||
let token = {
|
||||
account:id,
|
||||
token:crypto.randomBytes(12).toString('hex'),
|
||||
token:crypto.randomBytes(36).toString('hex'),
|
||||
expire:Date.now()+expire
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue