Skip to content

Instantly share code, notes, and snippets.

@igorwojda
Last active February 16, 2020 19:24
Show Gist options
  • Select an option

  • Save igorwojda/a34dce73d4e74b50e188fc06c8cbca4a to your computer and use it in GitHub Desktop.

Select an option

Save igorwojda/a34dce73d4e74b50e188fc06c8cbca4a to your computer and use it in GitHub Desktop.

Revisions

  1. igorwojda renamed this gist Feb 16, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. igorwojda created this gist Feb 16, 2020.
    8 changes: 8 additions & 0 deletions add-custom-interceptor.kt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    val okHttpClient = OkHttpClient.Builder()
    .addInterceptor(AuthInterceptor())
    .build()

    val retrofit = Retrofit.Builder()
    .baseUrl("https://igor.wojda.com/app")
    .client(okHttpClient)
    .build()