Skip to content

Commit

Permalink
Remove changes committed by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
poovamraj committed Dec 19, 2023
1 parent 8433c71 commit 67c3aed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public T read(JsonReader in) throws IOException {

Field[] fields = pojo.getClass().getDeclaredFields();
for (Field f : fields) {
if (f!= null && f.getAnnotation(JsonRequired.class) != null) {
if (f.getAnnotation(JsonRequired.class) != null) {
try {
f.setAccessible(true);
if (f.get(pojo) == null) {
Expand Down
17 changes: 3 additions & 14 deletions sample/src/main/java/com/auth0/sample/DatabaseLoginFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import kotlinx.coroutines.launch
*/
class DatabaseLoginFragment : Fragment() {

private val scope = "openid profile email offline_access read:current_user update:current_user_metadata"
private val scope = "openid profile email read:current_user update:current_user_metadata"

private val account: Auth0 by lazy {
// -- REPLACE this credentials with your own Auth0 app credentials!
Expand Down Expand Up @@ -247,13 +247,7 @@ class DatabaseLoginFragment : Fragment() {
}

private fun getCreds() {
credentialsManager.getCredentials(
"openid email profile offline_access",
0,
mapOf(),
mapOf("test" to "test"),
true,
object : Callback<Credentials, CredentialsManagerException> {
credentialsManager.getCredentials(object : Callback<Credentials, CredentialsManagerException> {
override fun onSuccess(result: Credentials) {
Snackbar.make(
requireView(),
Expand All @@ -270,12 +264,7 @@ class DatabaseLoginFragment : Fragment() {

private suspend fun getCredsAsync() {
try {
val credentials = credentialsManager.awaitCredentials(
"openid email profile offline_access",
0,
mapOf(),
mapOf("test" to "test"),
true)
val credentials = credentialsManager.awaitCredentials()
Snackbar.make(
requireView(),
"Got credentials - ${credentials.accessToken}",
Expand Down

0 comments on commit 67c3aed

Please sign in to comment.