File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,18 +5,19 @@ export const httpClient = axios.create({
55 baseURL : process . env . NEXT_PUBLIC_API_URL ,
66 headers : {
77 "Content-Type" : "application/json"
8- }
8+ } ,
9+ validateStatus : ( ) => true
910} ) ;
1011
1112export const federationClient = axios . create ( {
1213 baseURL : process . env . NEXT_PUBLIC_FEDERATION_API_URL ,
1314 headers : {
1415 "Content-Type" : "application/json" ,
1516 "Realm" : process . env . NEXT_PUBLIC_REALM
16- }
17+ } ,
18+ validateStatus : ( ) => true
1719} ) ;
1820
19-
2021httpClient . interceptors . request . use ( ( configuration ) => {
2122 const token = typeof window !== "undefined"
2223 ? localStorage . getItem ( LocalStorage . AccessToken )
Original file line number Diff line number Diff line change 1+ import { ProfilesClient } from "@/http/clients/profiles-client" ;
2+ import { federationClient , httpClient } from "./axios" ;
3+ import { IdentityClient } from "@/http/clients/identity-client" ;
4+
5+ export const profilesClient = new ProfilesClient ( httpClient ) ;
6+ export const identityClient = new IdentityClient ( federationClient ) ;
You can’t perform that action at this time.
0 commit comments