authgear / authgear-sdk-js

Authgear authentication SDK for Single Page Applications (SPA) and JavaScript websites
https://www.authgear.com/
Other
5 stars 18 forks source link

[Feature request] Support opening the Account Deletion page directly via SDK #286

Closed JasonNS1425 closed 4 months ago

JasonNS1425 commented 6 months ago

In the app we are working on, we would like to open the account deletion page directly when the user clicks the Delete Account button. Since the Authgear RN SDK container.open() only supports opening the Settings page and the Identities page, we can't do it natively with the Authgear SDK.

We have to work around by manually composing the URL ourselves or patching the package, but it seems more appropriate for Authgear to expose that page via the SDK to us.

https://github.com/authgear/authgear-sdk-js/blob/5e34306/packages/authgear-core/src/types.ts#L345

Requirements

linear[bot] commented 6 months ago

DEV-1232 [Feature request] Support opening the Account Deletion page directly via SDK

fungc-io commented 6 months ago

Thanks @JasonNS1425, the idea is put into backlog. At the meantime you can use the admin api in your application's backend server to initiate account deletion.