mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 23:26:48 +08:00
17 lines
359 B
JavaScript
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;
|