Files
talk/models/schema/token.js
T
2017-06-15 18:12:53 -04:00

17 lines
359 B
JavaScript

const mongoose = require('../../services/mongoose');
const Schema = mongoose.Schema;
const TokenSchema = new Schema({
// ID is the JTI of a given JWT's identifier.
id: String,
// Name is given by the user on token creation.
name: String,
// Active is used to determine if the token is valid.
active: Boolean
});
module.exports = TokenSchema;