How to use the userbase-js.signInWithSession 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.

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