@@ -23,9 +23,6 @@ test('Base case', async () => {
|
||||
for (const context of contexts.values()) {
|
||||
const jwt = await context.sign(payload, true, "2 days", "pascal", "server")
|
||||
|
||||
const decoded = jwt.payload
|
||||
expect(decoded).toEqual(payload)
|
||||
|
||||
const verified = (await context.verify(jwt, "pascal", "server")).expect("Should verify the JWT")
|
||||
expect(verified).toEqual(payload)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user