magic-admin-js

Magic admin Node.js SDK makes it easy to leverage Decentralized ID tokens to protect routes and restricted resources for your application.

MIT License

Downloads
41.5K
Stars
74

Bot releases are hidden (Show)

magic-admin-js - v2.4.1 Latest Release

Published by Ethella 6 months ago

πŸ› Bug Fix

Authors: 1

magic-admin-js - v2.4.0

Published by Ethella 7 months ago

πŸš€ Enhancement

Authors: 1

magic-admin-js - v2.3.0

Published by Ethella 7 months ago

πŸš€ Enhancement

Authors: 2

magic-admin-js - v2.2.0

Published by Ethella 7 months ago

πŸš€ Enhancement

πŸ› Bug Fix

  • Pdeexp 594 update admin sdk dependency versions to support web 3 #123 (@Ethella)

Authors: 2

magic-admin-js - v2.1.0

Published by Ethella 9 months ago

πŸš€ Enhancement

Authors: 1

magic-admin-js - v2.0.1

Published by Ethella about 1 year ago

πŸ› Bug Fix

Authors: 1

magic-admin-js - v2.0.0

Published by magiclabsFE over 1 year ago

Summary

  • πŸš€ Added: Magic Connect developers can now use the Admin SDK to validate DID tokens. #111 (@magic-ravi)
  • ⚠️ Changed: After creating the Magic instance, it is now necessary to call a new initialize method for Magic Connect developers that want to utilize the Admin SDK. #111 (@magic-ravi)
  • πŸ›‘οΈ Security: Additional validation of aud (client ID) is now being done during initialization of the SDK. #111 (@magic-ravi)

Developer Notes

πŸš€ Added

Admin SDK for MC

Magic Connect developers can now use the Admin SDK to validate DID tokens.

Details
There is full support for all TokenResource SDK methods for MC. This is intended to be used with client side magic-js SDK which will now emit an id-token-created event with a DID token upon login via the connectWithUI method.

This functionality is replicated on our other SDKs on Python and Ruby.

⚠️ Changed

Constructor initialization

The existing constructor has been deprecated in place of a new async init method.
The init method will pull clientId from Magic servers if one is not provided in the options parameter.

Previous Version

const magic = new Magic(secretKey);
try {
  magic.token.validate(DIDT);
} catch (e) {
  console.log(e);
}
try {
  await magic.users.getMetadataByToken(DIDT);
} catch (e) {
  console.log(e);
}

Current Version

const magic = await Magic.init(mcSecretKey);
try {
    magic.token.validate(DIDT);
} catch (e) {
   console.log(e);
}
try {
    await magic.users.getMetadataByToken(DIDT);
} catch (e) {
    console.log(e);
}

Attachment Validation

  • Skip validation of attachment if 'none' is passed in validate.

πŸ›‘οΈ Security

Client ID Validation

Additional validation of aud (client ID) is now being done during initialization of the SDK. This is for both Magic Connect and Magic Auth developers.

🚨 Breaking

None, all changes are fully backwards compatible. Default constructor is now deprecated in place of async init method.

Authors: 1

magic-admin-js - v1.10.1

Published by magiclabsFE over 1 year ago

πŸ› Bug Fix

Authors: 1

magic-admin-js - v1.10.0

Published by magiclabsFE over 1 year ago

πŸš€ Enhancement

Authors: 1

magic-admin-js - v1.9.2

Published by magiclabsFE over 1 year ago

πŸ› Bug Fix

Authors: 1

magic-admin-js - v1.9.1

Published by magiclabsFE over 1 year ago

πŸ› Bug Fix

  • [FIX]: updating response from API server to fit new schema #106 (@bengriffin1)

Authors: 1

magic-admin-js - v1.9.0

Published by magiclabsFE over 1 year ago

πŸš€ Enhancement

πŸ› Bug Fix

Authors: 2

magic-admin-js - Support new multi-chain wallet functionality

Published by justinnout almost 2 years ago

magic-admin-js - v1.4.1

Published by magiclabsFE over 2 years ago

πŸ› Bug Fix

Authors: 1

magic-admin-js - v1.4.0

Published by smithki over 2 years ago

πŸš€ Enhancement

  • feature: make package environment agnostic #81 (@f5io)

⚠️ Pushed to master

  • Update CircleCI to use Node 16 (@smithki)

🏠 Internal

Authors: 3

magic-admin-js - v1.3.4

Published by smithki almost 3 years ago

πŸ› Bug Fix

πŸ”© Dependency Updates

Authors: 3

magic-admin-js - v1.3.3

Published by smithki almost 3 years ago

πŸ› Bug Fix

  • getMetadata calls now return phone number #74 (@hcote)

Authors: 1

magic-admin-js - v1.3.2

Published by smithki almost 3 years ago

πŸ› Bug Fix

  • allow getMetadata calls to return social provider #71 (@hcote)

Authors: 1

magic-admin-js - v1.3.1

Published by smithki about 3 years ago

πŸ› Bug Fix

🏠 Internal

Authors: 2

magic-admin-js - v1.3.0

Published by smithki almost 4 years ago

πŸš€ Enhancement

  • Add continuous delivery via 'auto' package #46 (@smithki)

πŸ› Bug Fix

⚠️ Pushed to master

πŸ”© Dependency Updates

Authors: 5

Package Rankings
Top 2.74% on Npmjs.org
Badges
Extracted from project README
Publish
Related Projects