req.headers = mastodonObject.headers
req.headers.signature = 'Signature ' + req.headers.signature
- const parsed = parseHTTPSignature(req, 3600 * 365 * 3)
+ const parsed = parseHTTPSignature(req, 3600 * 1000 * 365 * 10)
const publicKey = require('./json/mastodon/public-key.json').publicKey
const actor = { publicKey }
req.headers = mastodonObject.headers
req.headers.signature = 'Signature ' + req.headers.signature
- const parsed = parseHTTPSignature(req, 3600 * 365 * 3)
+ const parsed = parseHTTPSignature(req, 3600 * 1000 * 365 * 10)
const publicKey = require('./json/mastodon/bad-public-key.json').publicKey
const actor = { publicKey }
let errored = false
try {
- parseHTTPSignature(req, 3600 * 365 * 3)
+ parseHTTPSignature(req, 3600 * 1000 * 365 * 10)
} catch {
errored = true
}
req.headers = mastodonObject.headers
req.headers.signature = 'Signature ' + req.headers.signature
- const parsed = parseHTTPSignature(req, 3600 * 365 * 3)
+ const parsed = parseHTTPSignature(req, 3600 * 1000 * 365 * 10)
const publicKey = require('./json/mastodon/public-key.json').publicKey
const actor = { publicKey }