diff --git a/app/src/main/java/eu/faircode/email/FragmentOAuth.java b/app/src/main/java/eu/faircode/email/FragmentOAuth.java index f4ca777c75..af5346f36f 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOAuth.java +++ b/app/src/main/java/eu/faircode/email/FragmentOAuth.java @@ -697,6 +697,13 @@ public class FragmentOAuth extends FragmentBase { EntityLog.log(context, "jwt payload=" + payload); JSONObject jpayload = new JSONObject(payload); + if (jpayload.has("iat")) + Log.i("Issued at " + new Date(jpayload.getLong("iat") * 1000L)); + if (jpayload.has("nbf")) + Log.i("Not before " + new Date(jpayload.getLong("nbf") * 1000L)); + if (jpayload.has("exp")) + Log.i("Expiration time " + new Date(jpayload.getLong("exp") * 1000L)); + if (jpayload.has("preferred_username")) { String u = jpayload.getString("preferred_username"); if (!TextUtils.isEmpty(u) && !usernames.contains(u))