<button>) to trigger the Rownd authentication modal when not signed in.
hrefattribute from the tag will be used instead.
data-rownd-request-sign-inwill display a closable sign-in modal (i.e., with a close icon showing) whereas
data-rownd-require-sign-inwill display a persistent, non-closable modal until the user successfully completes the sign-in process.
imgelement and the field name corresponds to a field of type "image". Example:
rowndproperty on the global
Windowobject. All JS APIs are available on this object.
onLoadedevent, like this:
auto_sign_in: boolean- when
true, automatically trigger a sign-in attempt if
identifieris 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 be resolved until a valid token is available. While unlikely, this could result in waiting forever.
authevent fires any time the user moves from an unauthenticated state to an authenticated state. It will also fire any time the access token is refreshed.