Account creation through the SDK

Hi I’m trying to also offer account creation through the SDK. When I open the login page we offer a button to create an account but I want to be able to do that in more places of the app and opening/loading the login page every time before being able to proceed to account creation is a bit cumbersome for the user so is there a way from the SDK to directly op the account creation/signup/register page instead of having to go through the login page first.

So instead of this:

WebAuthProvider
    .login(account)
    .withScheme("app")
    .withScope("openid profile email offline_access")
    .withTrustedWebActivity()
    .withParameters(mapOf("prompt" to "login"))
    .await(context)

More something like this:

WebAuthProvider
    .register_user_account(account)
    .withScheme("app")
    .withTrustedWebActivity()
    .await(context)

Hey there @dylan.drost

You should be able to direct users to the register page by passing a screen_hint param:

.withParameters(mapOf("screen_hint" to "signup"))

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.