You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did you perform a cursory search of open issues? Is this bug already reported elsewhere?
Are you running the latest SDK version?
Are you reporting to the correct repository (@magic-sdk/admin)?
๐ Description
Using the SDK's getMetadataByTokenAndWallet will always return an empty array of wallets. The API request through a plain curl call works as expected though.
magic.token.validate(token);// returns void if valid, throws if notreq.magicUser=awaitmagic.users.getMetadataByTokenAndWallet(token,"SUI"asany// use whatever here, wallets response will always be empty.);
What the SDK returns:
What the API returns:
curl --request GET \
--url 'https://api.magic.link/v1/admin/auth/user/get?issuer=did%3Aethr%3A0x2B05D3f84BeEE532A0FD92B07586EfB141C78d6B&wallet_type=SUI' \
--header 'X-Magic-Secret-key: sk_live_changeme'
run magic.users.getMetadataByTokenAndWallet in a nodejs application.
๐ค Expected behavior
It should return what the HTTP API does.
๐ฎ Actual behavior
It didn't return what the HTTP API does.
๐ป Code Sample
magic.token.validate(token);// returns void if valid, throws if notreq.magicUser=awaitmagic.users.getMetadataByTokenAndWallet(token,"SUI"asany// use whatever here, wallets response will always be empty.);
๐ Environment
Software
Version(s)
@magic-sdk/admin
Node
yarn
Operating System
The text was updated successfully, but these errors were encountered:
โ Prerequisites
@magic-sdk/admin
)?๐ Description
Using the SDK's
getMetadataByTokenAndWallet
will always return an empty array of wallets. The API request through a plain curl call works as expected though.What the SDK returns:
What the API returns:
[Description of the bug.]
๐งฉ Steps to Reproduce
magic.users.getMetadataByTokenAndWallet
in a nodejs application.๐ค Expected behavior
It should return what the HTTP API does.
๐ฎ Actual behavior
It didn't return what the HTTP API does.
๐ป Code Sample
๐ Environment
@magic-sdk/admin
yarn
The text was updated successfully, but these errors were encountered: