mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-02 14:09:43 +00:00
Add: 10 second grace period to access token cycle
This commit is contained in:
parent
122fc34a75
commit
da0a64daed
3 changed files with 142 additions and 10 deletions
|
|
@ -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
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue