Skip to content

Commit

Permalink
fix: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
y9vad9 authored Mar 19, 2024
1 parent 9c428c4 commit 02caa0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ val engine = RSocketTimeMatesRequestsEngine(
coroutineScope = Dispatchers.IO,
)
val emailAuth = AccountLoginApi(engine).email
val email = EmailAddress.create("[email protected]").getOrElse { return }
val email = EmailAddress.factory
.createSafe("[email protected]")
.toResult()
.getOrElse { return }

val authorizationResult = emailAuth.authorize(email)
// requestCode returns ConfirmationCode from user
Expand Down

0 comments on commit 02caa0e

Please sign in to comment.