From 02caa0ef281eb945130a1c4b080f68a6c4d7feda Mon Sep 17 00:00:00 2001 From: Vadym Yaroshchuk Date: Tue, 19 Mar 2024 14:50:38 +0100 Subject: [PATCH] fix: docs --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 296d1f6..b560c67 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,10 @@ val engine = RSocketTimeMatesRequestsEngine( coroutineScope = Dispatchers.IO, ) val emailAuth = AccountLoginApi(engine).email -val email = EmailAddress.create("developer@y9vad9.com").getOrElse { return } +val email = EmailAddress.factory + .createSafe("developer@y9vad9.com") + .toResult() + .getOrElse { return } val authorizationResult = emailAuth.authorize(email) // requestCode returns ConfirmationCode from user