mirror of
https://github.com/strapi/strapi.git
synced 2025-11-08 14:19:40 +00:00
fix return type
This commit is contained in:
parent
589a5bd1cf
commit
1bd9fbdd85
@ -142,7 +142,7 @@ const hash = (accessKey) => {
|
|||||||
/**
|
/**
|
||||||
* @param {number} lifespan
|
* @param {number} lifespan
|
||||||
*
|
*
|
||||||
* @returns {null|number}
|
* @returns { { lifespan: null | number, expiresAt: null | number } }
|
||||||
*/
|
*/
|
||||||
const getExpirationFields = (lifespan) => {
|
const getExpirationFields = (lifespan) => {
|
||||||
// it must be nil or a finite number >= 0
|
// it must be nil or a finite number >= 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user