Skip to content

Commit

Permalink
[FIX/#75] manifest 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchbreeze committed Jan 12, 2024
1 parent 55b048a commit d5bfbc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

<activity
android:name="com.going.presentation.todo.TodoActivity"
android:exported="true"
android:exported="false"
android:screenOrientation="portrait" />

<activity
Expand Down
17 changes: 7 additions & 10 deletions data/src/main/java/com/going/data/interceptor/AuthInterceptor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ class AuthInterceptor @Inject constructor(

Timber.d("GET ACCESS TOKEN : ${dataStore.accessToken}")

// val authRequest = if (dataStore.accessToken.isNotBlank()) {
// originalRequest.newAuthBuilder().build()
// } else {
// originalRequest
// }
val authRequest = originalRequest.newAuthBuilder().build()
val authRequest = if (dataStore.accessToken.isNotBlank()) {
originalRequest.newAuthBuilder().build()
} else {
originalRequest
}

val response = chain.proceed(authRequest)

Expand Down Expand Up @@ -85,10 +84,8 @@ class AuthInterceptor @Inject constructor(
return response
}

// private fun Request.newAuthBuilder() =
// this.newBuilder().addHeader(AUTHORIZATION, "$BEARER ${dataStore.accessToken}")
private fun Request.newAuthBuilder() =
this.newBuilder().addHeader(AUTHORIZATION, "$BEARER eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI2IiwiaWF0IjoxNzA0ODk1NDE4LCJleHAiOjE3MDU1MDAyMTh9.FWPJhGl9amOs1Aog1snD2O1ayVm6lRYBJgHOndyWdMQ")
private fun Request.newAuthBuilder() =
this.newBuilder().addHeader(AUTHORIZATION, "$BEARER ${dataStore.accessToken}")

companion object {
private const val CODE_TOKEN_EXPIRED = 401
Expand Down

0 comments on commit d5bfbc9

Please sign in to comment.