Skip to content

Commit

Permalink
Fix Patient creation issue on dev3. (#150)
Browse files Browse the repository at this point in the history
* (chore) updated "gender" question in registration questionnaire as required.

* (fix) added session url to cookie interceptor
- fixes dev3 patient creation
  • Loading branch information
parthfloyd authored Jan 30, 2025
1 parent 60861cd commit a4fde76
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ class AddCookiesInterceptor(private val context: Context) : Interceptor {
override fun intercept(chain: Interceptor.Chain): Response {
val originalRequest = chain.request()
val builder: Request.Builder = chain.request().newBuilder()
if (originalRequest.url.toString().contains("idgen")) {
if (
originalRequest.url.toString().contains("idgen") ||
originalRequest.url.toString().contains("session")
) {
runBlocking {
val prefCookies: Set<String> =
context.dataStore.data.first()[PreferenceKeys.PREF_COOKIES]?.toMutableSet()
Expand Down

0 comments on commit a4fde76

Please sign in to comment.