Skip to main content

useRequestScopesConsent

The useRequestScopesConsent hook returns an object with a requestScopesConsent() function that shows the consent sheet for scopes declared in your Mini's manifest.json. Use requestScopesConsent() when useCheckScopesConsent reports a partially_granted or not_granted status, and you want to let the user grant access again.

After the request resolves, call refetch() from useCheckScopesConsent to read the updated status. If another consent or permission sheet is already showing, or if the Mini's scope state hasn't loaded yet, then the request rejects with request_blocked.

Anchor to useRequestScopesConsent
useRequestScopesConsent()



Was this page helpful?