mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-04 18:00:45 +02:00
Add: 10 second grace period to access token cycle
This commit is contained in:
@@ -18,6 +18,10 @@ class Session extends Model {
|
||||
this.userId
|
||||
/** @type {Date} */
|
||||
this.expiresAt
|
||||
/** @type {string} */
|
||||
this.lastRefreshToken
|
||||
/** @type {Date} */
|
||||
this.lastRefreshTokenExpiresAt
|
||||
|
||||
// Expanded properties
|
||||
|
||||
@@ -66,6 +70,14 @@ class Session extends Model {
|
||||
expiresAt: {
|
||||
type: DataTypes.DATE,
|
||||
allowNull: false
|
||||
},
|
||||
lastRefreshToken: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: true
|
||||
},
|
||||
lastRefreshTokenExpiresAt: {
|
||||
type: DataTypes.DATE,
|
||||
allowNull: true
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user