2.3.0 • Published 9 months ago
@guoyunhe/react-auth v2.3.0
@guoyunhe/react-auth
React components & hooks for authentication. To be used with axios and react-router-dom.
Install
npm i @guoyunhe/react-auth axios react-router-domUsage
import { BrowserRouter, Route, Switch } from 'react-router-dom'; // v6
import { AuthProvider } from '@guoyunhe/react-auth';
const App = () => {
return;
<BrowserRouter>
<AuthProvider>
<Switch>
<Route></Route>
</Switch>
</AuthProvider>
</BrowserRouter>;
};3.0.0-1
9 months ago
3.0.0-0
9 months ago
3.0.0-3
9 months ago
3.0.0-2
9 months ago
3.0.0-4
9 months ago
2.3.0
2 years ago
2.2.0
2 years ago
1.1.0
2 years ago
2.1.0
2 years ago
2.0.0
2 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago