Overview
We’re deprecating MWS (loginWithOIDC) and moving all of our customers to Express API, which enables developers to perform wallet operations without the need of using an iframe or going through Magic for authentication. All the documentation is available here.
Migration Steps
1
Fetch New Provider ID
Retrieve your new provider ID using the following request:Replace
cURL
YOUR_MAGIC_SECRET_KEY with your Magic secret key.2
Configure Login
Update your authentication flow to use the following POST request instead of Replace
loginWithOIDC to get or create a wallet:cURL
YOUR_JWT_TOKEN, YOUR_MAGIC_API_KEY, and YOUR_OIDC_PROVIDER_ID with your actual values.3
Update Signing Operations
Replace Magic SDK signing operations with TEE signing. See the signing operations page for detailed implementation, and the data preparation pages for specific blockchain implementations:
4
Uninstall Magic SDK
Remove the
magic-sdk package and any related extensions from your project:Migration Details
- All of your end users’ wallets have already been migrated to Express API and any new wallets are already being created via the new system. There will be no downtime for you or your end users.
- You must obtain a new provider ID for Express API. One has already been created for all existing developers. While your existing
providerIdfrom theloginWithOIDCcall will work temporarily as theX-OIDC-Provider-IDheader, the old identifier will be deprecated soon.