-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat/#55] token interceptor + accessToken 재발급 + token 컨트롤 #63
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
안드의 자랑,, 고잉고잉의 자랑,, 박동민,,,,
interface SettingService { | ||
@PATCH("api/users/signout") | ||
suspend fun patchSignOut(): SignOutResponseDto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PATCH
저도 사용해야 하는데 참고하겠습니당
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저두욤
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굿굿티비 괴롭힐게 줄바꿈밖에 없네요 ㅋㅋ
) : Interceptor { | ||
override fun intercept(chain: Interceptor.Chain): Response { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
줄바꿈하면 더 예쁠듯
fun setTokens(accessToken: String, refreshToken: String) | ||
fun clearTokens() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
줄바꿈 해주실 수 있나요 ㅋㅋ
@@ -26,7 +27,7 @@ class TendencyTestResultActivity : | |||
with(binding) { | |||
tvTendencyTestResultTitle.text = getString(R.string.tendency_test_result_title, "찐두릅") | |||
|
|||
viewModel?.mockTendencyResult?.apply { | |||
viewModel.mockTendencyResult.apply { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수정 조하요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
멋진 코드입니다
잘보고갑니다람쥐👍👍👍👍👍👍👍👍👍👍👍
interface SettingService { | ||
@PATCH("api/users/signout") | ||
suspend fun patchSignOut(): SignOutResponseDto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저두욤
@Provides | ||
@Singleton | ||
fun provideOkHttpClient( | ||
@JWT | ||
fun provideAuthInterceptor(authInterceptor: AuthInterceptor): Interceptor = authInterceptor | ||
|
||
@Provides | ||
@Singleton | ||
fun provideJWTOkHttpClient( | ||
loggingInterceptor: Interceptor, | ||
@JWT authInterceptor: Interceptor, | ||
): OkHttpClient = OkHttpClient.Builder() | ||
.addInterceptor(loggingInterceptor) | ||
.addInterceptor(authInterceptor) | ||
.build() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그는 신이다
⛳️ Work Description
📸 Screenshot
📢 To Reviewers