mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Auth tokens back to simple strings as private key used for token refresh which not doing
This commit is contained in:
@@ -18,7 +18,7 @@ describe("InMemoryLinkCodes", () => {
|
||||
describe('when token is valid', () => {
|
||||
it('should associate the token', () => {
|
||||
const linkCode = linkCodes.mint();
|
||||
const association = { authToken: { value: "token123", version: "22" }, nickname: "bob", userId: "1" };
|
||||
const association = { authToken: "token123", nickname: "bob", userId: "1" };
|
||||
|
||||
linkCodes.associate(linkCode, association);
|
||||
|
||||
@@ -29,7 +29,7 @@ describe("InMemoryLinkCodes", () => {
|
||||
describe('when token is valid', () => {
|
||||
it('should throw an error', () => {
|
||||
const invalidLinkCode = "invalidLinkCode";
|
||||
const association = { authToken: { value: "token123", version: "33" }, nickname: "bob", userId: "1" };
|
||||
const association = { authToken: "token456", nickname: "bob", userId: "1" };
|
||||
|
||||
expect(() => linkCodes.associate(invalidLinkCode, association)).toThrow(`Invalid linkCode ${invalidLinkCode}`)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user