signup method

Future<DatabaseUser> signup(
  1. {required String email,
  2. required String password,
  3. String? username,
  4. required String connection,
  5. Map<String, String> userMetadata = const {},
  6. Map<String, String> parameters = const {}}
)

Registers a new user with the specified email address and password in the specified connection.

Endpoint

https://auth0.com/docs/api/authentication#signup

Notes

  • username is only required if the connection you specify requires it

Implementation

Future<DatabaseUser> signup(
        {required final String email,
        required final String password,
        final String? username,
        required final String connection,
        final Map<String, String> userMetadata = const {},
        final Map<String, String> parameters = const {}}) =>
    Auth0FlutterAuthPlatform.instance.signup(_createApiRequest(
        AuthSignupOptions(
            email: email,
            password: password,
            connection: connection,
            username: username,
            userMetadata: userMetadata,
            parameters: parameters)));