Made the Session.ts model token double-quoted

This commit is contained in:
Mathias Wagner 2023-01-15 19:44:07 +01:00
parent ed21efd438
commit 2bae7005e5
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -18,7 +18,7 @@ const SessionSchema = new Schema<ISession>({
}, },
token: { token: {
type: String, type: String,
default: () => crypto.randomBytes(48).toString('hex') default: () => crypto.randomBytes(48).toString("hex")
}, },
ip: String, ip: String,
userAgent: String, userAgent: String,