mega.revokePermissions()
Last updated
Immediately revoke all active delegated permissions from the app side. After revocation, callContract() with silent: true will fall back to the wallet approval UI.
mega.revokePermissions(): Promise<void>
None.
await mega.revokePermissions();
// Also point users to wallet/account settings for per-app revocation controls.Promise<void> — resolves once the revocation is recorded.
App-triggered revokePermissions() is one revocation path. Users can also revoke permissions per app from wallet/account settings, independent of any app trigger. Don't describe revocation as global-only or all-or-nothing in your UI copy.
For reading current permissions before revoking, use getPermissions().
Last updated