@@ -63,7 +63,7 @@ export const getDidJwtVerifier = (jwt: { header: JwtHeader; payload: JwtPayload
6363 if ( ! jwt . header . kid . includes ( '#' ) ) {
6464 throw new Error ( `Received an invalid JWT.. '${ type } ' contains an invalid kid header.` ) ;
6565 }
66- return { method : 'did' , didUrl : jwt . header . kid , type : type , alg : jwt . header . alg as SigningAlgo } ;
66+ return { method : 'did' , didUrl : jwt . header . kid , type : type , alg : jwt . header . alg } ;
6767} ;
6868
6969export const getX5cVerifier = ( jwt : { header : JwtHeader ; payload : JwtPayload } , options : { type : JwtType } ) : X5cJwtVerifier => {
@@ -79,7 +79,7 @@ export const getX5cVerifier = (jwt: { header: JwtHeader; payload: JwtPayload },
7979 throw new Error ( `Received an invalid JWT. '${ type } ' contains an invalid iss claim.` ) ;
8080 }
8181
82- return { method : 'x5c' , x5c : jwt . header . x5c , issuer : jwt . payload . iss , type : type , alg : jwt . header . alg as SigningAlgo } ;
82+ return { method : 'x5c' , x5c : jwt . header . x5c , issuer : jwt . payload . iss , type : type , alg : jwt . header . alg } ;
8383} ;
8484
8585export const getJwkVerifier = async ( jwt : { header : JwtHeader ; payload : JwtPayload } , options : { type : JwtType } ) : Promise < JwkJwtVerifier > => {
@@ -91,7 +91,7 @@ export const getJwkVerifier = async (jwt: { header: JwtHeader; payload: JwtPaylo
9191 throw new Error ( `Received an invalid JWT. '${ type } ' contains an invalid jwk header.` ) ;
9292 }
9393
94- return { method : 'jwk' , type, jwk : jwt . header . jwk , alg : jwt . header . alg as SigningAlgo } ;
94+ return { method : 'jwk' , type, jwk : jwt . header . jwk , alg : jwt . header . alg } ;
9595} ;
9696
9797export const getJwtVerifierWithContext = async (
0 commit comments