Skip to content

Commit

Permalink
Fix access token set issue on AuthTokenProvider.
Browse files Browse the repository at this point in the history
  • Loading branch information
bywindow committed Nov 17, 2024
1 parent 5ec9b6f commit ef120d0
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.goalpanzi.mission_mate.core.data.auth

import com.goalpanzi.mission_mate.core.datastore.datasource.AuthDataSource
import com.goalpanzi.mission_mate.core.network.TokenProvider
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.flow.firstOrNull
import javax.inject.Inject

Expand All @@ -17,12 +18,10 @@ class AuthTokenProvider @Inject constructor(
}

override suspend fun setAccessToken(accessToken: String) {
authDataSource.setAccessToken(accessToken)
authDataSource.setAccessToken(accessToken).collect()
}

override suspend fun setRefreshToken(refreshToken: String) {
authDataSource.setRefreshToken(refreshToken)
authDataSource.setRefreshToken(refreshToken).collect()
}


}

0 comments on commit ef120d0

Please sign in to comment.