Skip to content

Commit

Permalink
[del] #8 회원가입 뷰 - 사용하지 않는 localDataStorage field 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
HAJIEUN02 committed Nov 5, 2024
1 parent 764de95 commit cd5e05e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@ package org.sopt.and.data.datasource.local

interface WaveLocalDataSource {
var isLogin: Boolean
var userEmail: String
var userPassword: String
var accessToken: String
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,13 @@ class WaveLocalDataSourceImpl @Inject constructor(
get() = pref.getBoolean(AUTO_LOGIN, false)
set(value) = pref.edit { putBoolean(AUTO_LOGIN, value) }

override var userEmail: String
get() = pref.getString(USER_EMAIL, "") ?: ""
set(value) = pref.edit { putString(USER_EMAIL, value) }

override var userPassword: String
get() = pref.getString(USER_PASSWORD, "") ?: ""
set(value) = pref.edit { putString(USER_PASSWORD, value) }

override var accessToken: String
get() = pref.getString(ACCESS_TOKEN, "") ?: ""
set(value) = pref.edit { putString(ACCESS_TOKEN, value) }

companion object {
const val FILE_NAME = "AuthSharedPreferences"
const val AUTO_LOGIN = "AutoLogin"
const val USER_EMAIL = "UserEmail"
const val USER_PASSWORD = "UserPassword"
const val ACCESS_TOKEN = "AccessToken"
}
}

0 comments on commit cd5e05e

Please sign in to comment.