Comments (1)
You're right! However the project this package was initially built for was using Axios, hence this package was built using Axios.
Another advantage is that we can set easily Axios to use the sanctum cookies for every request by just enabling axios.defaults.withCredentials = true;
. I think, but I'm not completely sure, if you wanted to do the same thing with Fetch you would have to add credentials: 'include'
every time to want to make a request.
from react-sanctum.
Related Issues (20)
- config properties are undefined HOT 1
- [Help] can you use this package with react native?
- singOut dose not return a promise HOT 1
- Redirect if not authenticated? HOT 1
- User Type defenition HOT 1
- Version 2.1.3 still has the Children type error HOT 2
- SanctumContext: Cannot invoke an object which is possibly 'undefined'.ts HOT 2
- TypeError: Cannot read property 'useContext' of null HOT 3
- Load user data before page load HOT 1
- Redirect if not authenticated HOT 2
- Old axios version in NPM release HOT 2
- Does this work with Sanctum tokens? HOT 3
- User is always returned : false HOT 1
- please show starter kit HOT 1
- Session Expired Response Handling HOT 2
- Unauthenticated result HOT 1
- Is this packade is only for SPA (csrfCookie) not for Mobile Apps (Token) ? HOT 1
- Unnecessary Accept headers being added text/plain, */* HOT 1
- Accessing to csrf token
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-sanctum.