From 30f80fc2a9e9dd2084296f13a2fce8c0aa12500f Mon Sep 17 00:00:00 2001 From: Ben Griffin Date: Fri, 22 Mar 2024 17:14:56 -0400 Subject: [PATCH] Fixing types on error catching --- src/modules/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/utils/index.ts b/src/modules/utils/index.ts index 7b39dbd..37d5535 100644 --- a/src/modules/utils/index.ts +++ b/src/modules/utils/index.ts @@ -32,7 +32,7 @@ export class UtilsModule extends BaseModule { // Validate DID token try { this.sdk.token.validate(didToken); - } catch (e) { + } catch (e: any) { // Check if code is malformed token if ((e as MagicAdminSDKError).code === 'ERROR_MALFORMED_TOKEN') { return {