Closed jesuslopezlugo closed 1 year ago
@jesuslopezlugo We don't have a testMode configuration available for the admin SDK. The token resolved from a client SDK configured to testMode will have limited abilities in the admin SDK. You can see the expected behaviors in our docs to guide you. https://magic.link/docs/auth/introduction/test-mode#expected-behavior
✅ Prerequisites
@magic-sdk/admin
)?❓ Question
How to mock @magic-sdk/admin in NodeJS or enable Test Mode in Magic Admin SDK?
I'm trying to mock
@magic-sdk/admin
using sinon.js without success.Do you have test mode for admin sdk like you have for client sdk?
In order to create valid test did token and make unit testing with my code
🌎 Environment
@magic-sdk/admin
npm