Skip to content

useauthrocket official github repository. Create and manage users for your application with useauthrocket

Notifications You must be signed in to change notification settings

ugwustanley/authrocket-npm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

authrocket

Installation

npm install useauthrocket

Usage

 import Authrocket from 'useauthrocket'
    
 const app = Authrocket.initializeApp({
           apiKey: <your api key>,
           appName: <your app name>
    })

Visit authrocket website to generate an api key. appName is the name of your application and can be anything

Available methods

  • createAccount
    • accepts:
      • email (string)
      • password (string)
      • payload (object)(optional)
    • returns: object
const user = app.createAccount(<email>, <password>, <payload>)
  • login
    • accepts:
      • email (string)
      • password (string)
    • returns: object
const user = app.login(<email>, <password>)
  • getUser
    • accepts:
      • uuid (string)
    • returns: object
const user = app.getUser(<uuid>)
  • isEmailVerified
    • accepts:
      • uuid (string)
    • returns: boolean
const isEmailVerified = app.isEmailVerified(<uuid>)
  • isUserLoggedIn
    • accepts:
      • uuid (string)
    • returns: boolean
const isUserSignedIn = app.isUserSignedIn(<uuid>)
  • signout
 app.signout()

About

useauthrocket official github repository. Create and manage users for your application with useauthrocket

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published