How to use the userbase-js.signIn function in userbase-js

To help you get started, we’ve selected a few userbase-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github encrypted-dev / userbase / src / proof-of-concept / client / components / User / logic.js View on Github external
const signIn = async (username, password) => {
  try {
    const result = await userbase.signIn(username, password)
    return result
  } catch (e) {
    return _errorHandler(e, 'sign in')
  }
}