0.5.5-d • Published 10 months ago
@devhero/devauth-react v0.5.5-d
DevAuth React
Take it easy !
Client-Side with Context
import { DevAuthProvider, initializeDevAuth } from "@devhero/devauth-react"
const devauth = initializeDevAuth({
projectUrl: "******",
projectName: "******",
projectKey: "******",
})
<DevAuthProvider app={devauth}>
....
</DevAuthProvider>
useDevAuth():
import { useDevAuth } from "@devhero/devauth-react"
const {
signInWithUsernameAndPassword,
getIsLoggedIn,
getToken,
logout
} = useDevAuth()
Server-Side with Context
import { getServerSideDevAuth } from "@devhero/devauth-react"
const {
isValid,
getIsLoggedIn,
getToken
} = getServerSideDevAuth(devauth, context); // getServerSideDevAuth(devauth, { req });
License
MIT
Free Software, Hell Yeah!
0.5.5-d
10 months ago
0.5.5-c
10 months ago
0.5.5-b
10 months ago
0.5.5-a
10 months ago
0.5.5
10 months ago
0.5.2
10 months ago
0.5.1
10 months ago
0.5.0
10 months ago
0.3.0-dev-2
10 months ago
0.3.0-dev-1
10 months ago
0.3.0
10 months ago
0.2.7-dev-4
10 months ago
0.2.7-dev-3
10 months ago
0.2.7-dev-2
10 months ago
0.2.7-dev
10 months ago
0.2.7
10 months ago
0.2.6
10 months ago
0.2.5
10 months ago
0.2.4
10 months ago
0.2.3
10 months ago
0.2.2
10 months ago
0.2.1
10 months ago
0.2.0
10 months ago
0.1.11
10 months ago
0.1.10
10 months ago
0.1.9
10 months ago
0.1.7
10 months ago
0.1.6
10 months ago
0.1.5
10 months ago
0.1.4
10 months ago
0.1.3
10 months ago
0.1.2
10 months ago
0.1.1
10 months ago
0.1.0
10 months ago
0.0.9
10 months ago
0.0.8
10 months ago
0.0.7
10 months ago
0.0.6
10 months ago
0.0.5
10 months ago
0.0.4
10 months ago
0.0.3
10 months ago
0.0.2
10 months ago
0.0.1
10 months ago