From 0f838965fb6696a90a376de4cc03d0e4dd47f02b Mon Sep 17 00:00:00 2001 From: David Perez Date: Thu, 27 Jun 2024 15:30:51 -0500 Subject: [PATCH] Fix bug where JWT token clearing premium status (#3373) --- .../data/auth/repository/util/RefreshTokenResponseExtensions.kt | 1 - .../data/auth/repository/util/RefreshTokenResponseJsonTest.kt | 1 - 2 files changed, 2 deletions(-) diff --git a/app/src/main/java/com/x8bit/bitwarden/data/auth/repository/util/RefreshTokenResponseExtensions.kt b/app/src/main/java/com/x8bit/bitwarden/data/auth/repository/util/RefreshTokenResponseExtensions.kt index 0c9451a01..4daef3c96 100644 --- a/app/src/main/java/com/x8bit/bitwarden/data/auth/repository/util/RefreshTokenResponseExtensions.kt +++ b/app/src/main/java/com/x8bit/bitwarden/data/auth/repository/util/RefreshTokenResponseExtensions.kt @@ -24,7 +24,6 @@ fun RefreshTokenResponseJson.toUserStateJson( email = jwtTokenData.email, isEmailVerified = jwtTokenData.isEmailVerified, name = jwtTokenData.name, - hasPremium = jwtTokenData.hasPremium, ), ) diff --git a/app/src/test/java/com/x8bit/bitwarden/data/auth/repository/util/RefreshTokenResponseJsonTest.kt b/app/src/test/java/com/x8bit/bitwarden/data/auth/repository/util/RefreshTokenResponseJsonTest.kt index 495acf9eb..23fcdf862 100644 --- a/app/src/test/java/com/x8bit/bitwarden/data/auth/repository/util/RefreshTokenResponseJsonTest.kt +++ b/app/src/test/java/com/x8bit/bitwarden/data/auth/repository/util/RefreshTokenResponseJsonTest.kt @@ -103,7 +103,6 @@ private val ACCOUNT_1_UPDATED = ACCOUNT_1.copy( email = JWT_TOKEN_DATA.email, isEmailVerified = JWT_TOKEN_DATA.isEmailVerified, name = JWT_TOKEN_DATA.name, - hasPremium = JWT_TOKEN_DATA.hasPremium, ), )