chore: split axios request options into platform (#3927)
Co-authored-by: jamesgeorge007 <jamesgeorge998001@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user