mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-03 03:55:26 +03:00
3ff9146d9e
- remove sessions - remove all references to csrf - create a shared base model for the 2 types of token
18 lines
444 B
JavaScript
18 lines
444 B
JavaScript
var ghostBookshelf = require('./base'),
|
|
Basetoken = require('./basetoken'),
|
|
|
|
Refreshtoken,
|
|
Refreshtokens;
|
|
|
|
Refreshtoken = Basetoken.extend({
|
|
tableName: 'refreshtokens'
|
|
});
|
|
|
|
Refreshtokens = ghostBookshelf.Collection.extend({
|
|
model: Refreshtoken
|
|
});
|
|
|
|
module.exports = {
|
|
Refreshtoken: ghostBookshelf.model('Refreshtoken', Refreshtoken),
|
|
Refreshtokens: ghostBookshelf.collection('Refreshtokens', Refreshtokens)
|
|
}; |