Include a way to register other test users #4

Merged
anomalist merged 3 commits from test-registration into master 2023-01-09 21:25:34 +00:00
Showing only changes of commit 693df1bda1 - Show all commits

View File

@@ -122,7 +122,7 @@ export const accessToken = async (identifier: IIdentifier) => {
: privateKeyHex;
const privateKeyBytes = u8a.fromString(input.toLowerCase(), "base16");
const signer = didJwt.ES256KSigner(privateKeyBytes, true);
const signer = didJwt.SimpleSigner(privateKeyHex);
const nowEpoch = Math.floor(Date.now() / 1000);
const endEpoch = nowEpoch + 60; // add one minute
@@ -143,7 +143,7 @@ export const sign = async (privateKeyHex: string) => {
: privateKeyHex;
const privateKeyBytes = u8a.fromString(input.toLowerCase(), "base16");
const signer = didJwt.ES256KSigner(privateKeyBytes, true);
const signer = didJwt.SimpleSigner(privateKeyHex);
return signer;
};