Skip to content

Commit

Permalink
Fixing types on error catching
Browse files Browse the repository at this point in the history
  • Loading branch information
bengriffin1 committed Mar 22, 2024
1 parent 1f1e1b8 commit 30f80fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 30f80fc

Please sign in to comment.