few more things

This commit is contained in:
Hailey
2024-04-15 02:47:43 -07:00
parent dbbcd275b4
commit d56116a6f4
3 changed files with 5 additions and 16 deletions
@@ -14,13 +14,10 @@ type Item = {
type EncodedKey = {
keyId: string
keyPair: CryptoKeyPair
keyPair: CryptoKey
}
function encodeKey(key: Key): EncodedKey {
if (!(key instanceof WebcryptoKey) || !key.kid) {
throw new Error('Invalid key object')
}
return {
keyId: key.kid,
keyPair: key.cryptoKeyPair,
@@ -42,7 +39,6 @@ export type Schema = {
}>
session: Item<{
dpopKey: EncodedKey
tokenSet: TokenSet
}>