mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-21 21:36: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)) {
|
export function create(id:string,expire:number=(24*60*60*1000)) {
|
||||||
let token = {
|
let token = {
|
||||||
account:id,
|
account:id,
|
||||||
token:crypto.randomBytes(12).toString('hex'),
|
token:crypto.randomBytes(36).toString('hex'),
|
||||||
expire:Date.now()+expire
|
expire:Date.now()+expire
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue