const secret = 'secrety';
sinon.stub(ResourceAuthenticator, 'currentEpoch').get(() => 1648836029);
sinon.stub(ra, 'getSalt').resolves('xxxxx');
- const expected = 'bq7ZSLHkEeyakQAlkF9xSg:1648836029:xxxxx:fdUYC8Gqe0nAyX_-SWvRsPsx0UjY-vV-Ff0A52j6Zfw';
+ const expected = 'Bearer bq7ZSLHkEeyakQAlkF9xSg:1648836029:xxxxx:fdUYC8Gqe0nAyX_-SWvRsPsx0UjY-vV-Ff0A52j6Zfw';
const result = await ra.authenticate(identifier, secret);
assert.strictEqual(result, expected);
});
});
});
-}); // ResourceAuthenticator
\ No newline at end of file
+}); // ResourceAuthenticator