Development Kit Js

Authentication

APIs usage for interaction with authentication services

DirecAuth - user authentication APIs

Import authentication module

        import {direcauth as auth} from 'direcbase'

      

Login by using email and password

        const result = await auth.login({
            "email": email,
            "password": password
        })

      

Logout

        const result = await auth.logout()

      

Validate token if it was expired or invalidated

        const result = await auth.validate()