0.5.5-d • Published 11 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
11 months ago
0.5.5-c
11 months ago
0.5.5-b
11 months ago
0.5.5-a
11 months ago
0.5.5
11 months ago
0.5.2
11 months ago
0.5.1
11 months ago
0.5.0
11 months ago
0.3.0-dev-2
11 months ago
0.3.0-dev-1
11 months ago
0.3.0
11 months ago
0.2.7-dev-4
11 months ago
0.2.7-dev-3
11 months ago
0.2.7-dev-2
11 months ago
0.2.7-dev
11 months ago
0.2.7
11 months ago
0.2.6
11 months ago
0.2.5
11 months ago
0.2.4
11 months ago
0.2.3
11 months ago
0.2.2
11 months ago
0.2.1
11 months ago
0.2.0
11 months ago
0.1.11
11 months ago
0.1.10
11 months ago
0.1.9
11 months ago
0.1.7
11 months ago
0.1.6
11 months ago
0.1.5
11 months ago
0.1.4
11 months ago
0.1.3
11 months ago
0.1.2
11 months ago
0.1.1
11 months ago
0.1.0
11 months ago
0.0.9
11 months ago
0.0.8
11 months ago
0.0.7
11 months ago
0.0.6
11 months ago
0.0.5
11 months ago
0.0.4
11 months ago
0.0.3
11 months ago
0.0.2
11 months ago
0.0.1
11 months ago