0.5.5-d • Published 12 months ago

@devhero/devauth-react v0.5.5-d

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

DevAuth React

Take it easy !

Register project in console

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

12 months ago

0.5.5-c

12 months ago

0.5.5-b

12 months ago

0.5.5-a

12 months ago

0.5.5

12 months ago

0.5.2

12 months ago

0.5.1

12 months ago

0.5.0

12 months ago

0.3.0-dev-2

12 months ago

0.3.0-dev-1

12 months ago

0.3.0

12 months ago

0.2.7-dev-4

12 months ago

0.2.7-dev-3

12 months ago

0.2.7-dev-2

12 months ago

0.2.7-dev

12 months ago

0.2.7

12 months ago

0.2.6

12 months ago

0.2.5

12 months ago

0.2.4

12 months ago

0.2.3

12 months ago

0.2.2

12 months ago

0.2.1

12 months ago

0.2.0

12 months ago

0.1.11

12 months ago

0.1.10

12 months ago

0.1.9

12 months ago

0.1.7

12 months ago

0.1.6

12 months ago

0.1.5

12 months ago

0.1.4

12 months ago

0.1.3

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago

0.0.9

12 months ago

0.0.8

12 months ago

0.0.7

12 months ago

0.0.6

12 months ago

0.0.5

12 months ago

0.0.4

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago