chore: split axios request options into platform (#3927)

Co-authored-by: jamesgeorge007 <jamesgeorge998001@gmail.com>
This commit is contained in:
Akash K
2024-03-22 13:42:41 +05:30
committed by GitHub
parent c89c2a5f5c
commit d19807b212
3 changed files with 21 additions and 3 deletions

View File

@@ -211,6 +211,13 @@ export const def: AuthPlatformDef = {
}
},
axiosPlatformConfig() {
return {
// for including cookies in the request
withCredentials: true,
}
},
/**
* it is not possible for us to know if the current cookie is expired because we cannot access http-only cookies from js
* hence just returning if the currentUser$ has a value associated with it