package Ġcom . as yn ct ask coffee . mov iest emplate . data Ċ Ċ import Ġokhttp 3 . Interceptor Ċ import Ġokhttp 3 . Response Ċ import Ġjava . io . IOException Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠBearer Token Interceptor Ġ@ Inject Ċ constructor () Ġ: ĠInter ceptor Ġ{ ĊĊĠĠĠ Ġvar Ġbe arer Token : ĠString ? Ġ= Ġ" ey J hb G ci OiJ I Uz I 1 Ni J 9 . ey J hd W QiOiJ j Mz cx Zj Jm Nm Ez Ym Zj Zj Zl Nj gw ND c 3 N TY y Mj Y 1 M 2 I 5 Ni IsIn N 1 Yi I 6 Ij Vm MT gy ZD gz NT Fl Nm Fi MD Az N WM 4 M GY 2 NS IsIn N jb 3 Bl cy I 6 Wy J hc G lf cm Vh ZC Jd LCJ 2 ZXJ zaW 9 u Ij ox f Q . R IM U JJ Iw I 6 c 1 4 BH 9 Di XC z Rn SP 5 Y rg h Gz 0 Lu T JV 7 p E Co " ĊĊĠĠĠ Ġoverride Ġfun Ġintercept ( chain : ĠInter ceptor . Chain ): ĠResponse Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġrequest Builder Ġ= Ġchain . request (). newBuilder () ĊĠĠĠĠĠĠĠ Ġrequest Builder . add Header (" Authorization ", Ġ" Bearer Ġ$ bearer Token ") ĊĠĠĠĠĠĠĠ Ġrequest Builder . add Header (" Accept ", Ġ" application / json ") ĊĠĠĠĠĠĠĠ Ġrequest Builder . add Header (" Content - Type ", Ġ" application / json ") ĊĠĠĠĠĠĠĠ Ġreturn Ġchain . proceed ( request Builder . build ()) ĊĠĠĠ Ġ} Ċ }