<BlockSwitcher>
<Block name="Java">

```java
Amplify.Auth.signOut(
    () -> Log.i("AuthQuickstart", "Signed out successfully"),
    error -> Log.e("AuthQuickstart", error.toString())
);
```

</Block>
<Block name="Kotlin - Callbacks">

```kotlin
Amplify.Auth.signOut(
    { Log.i("AuthQuickstart", "Signed out successfully") },
    { Log.e("AuthQuickstart", "Sign out failed", it) }
)
```

</Block>
<Block name="Kotlin - Coroutines">

```kotlin
try {
    Amplify.Auth.signOut()
    Log.i("AuthQuickstart", "Signed out successfully")
} catch (error: AuthException) {
    Log.e("AuthQuickstart", "Sign out failed", error)
}
```

</Block>
<Block name="RxJava">

```java
RxAmplify.Auth.signOut()
    .subscribe(
        () -> Log.i("AuthQuickstart", "Signed out successfully"),
        error -> Log.e("AuthQuickstart", error.toString())
    );
```

</Block>
</BlockSwitcher>
