Skip to main content

Accountless resource

Login

info

When used successfully, the supplied email is added to the context manager and automatically stored in secure storage, along with the cloud auth token and cloud refresh token from the response.

// Returns a TokenResponse
val response = sdk.accountless().login(
email = "EMAIL",
password = "PASSWORD"
)

Register a new user

After registration, you will need to verify the email.

info

When used successfully, the supplied email is added to the context manager and automatically stored in secure storage, along with the cloud auth token and cloud refresh token from the response.

// Returns a TokenResponse
val response = sdk.accountless().registration(
email = "EMAIL",
password = "PASSWORD"
)

Verify email

// Returns Unit
sdk.accountless().verifyEmail("CODE")

Password reset

// Returns Unit
sdk.accountless().passwordReset("EMAIL")

Password reset verify

// Returns Unit
sdk.accountless().passwordResetVerify(
userId = USER_ID,
token = "TOKEN",
password = "PASSWORD"
)