Easily add Rownd instant accounts and authentication to your Vue-based project.
npm install @rownd/vue
or yarn add @rownd/vue
.
appKey
(required): This is the key generated by the
Rownd dashboard.
rootOrigin
(optional): If you’re using Rownd across multiple domains (e.g.,
rownd.io
and app.rownd.io
), set this to the “root” origin (e.g.,
https://rownd.io).
useRownd
injector. Javascript will be used for most examples, but these should
work with Vue directives as well.
requestSignIn()
auto_sign_in: boolean
- when true
, automatically trigger a sign-in
attempt if identifier
is included or an email address or phone number has
already been set in the user data.
identifier: string
- an email address or phone number (in E164 format) to
which a verification message may be sent. If the Rownd app is configured to
allow unverified users, then sign-in will complete without verification if the
user has not signed in previously.
waitForToken: boolean
- when true
, if no access token is present or if
it’s expired, the promise will not resolve until a valid token is available.
While unlikely, this could result in waiting forever.is_initializing
will be true
until the Hub has fully loaded, recalled its
state, and resolved the current user’s authentication status. This usually takes
only a few milliseconds, but if you make decisions that depend on the
is_authenticated
flag while is_initializing
is still true
, your code/logic
may not work as you expect.
first_name
in a form field, and then immediately sync changes
to Rownd as the user updates the form field.