Autheticate your logged in users with the SDK.
useIdentify
hook.User
object.@mention
in the comments, you need to pass the user’s contacts. Learn more about how it works here.useIdentify()
hook and pass in the Velt User
object.useIdentify()
method is asynchronous.useIdentify
within a child component of the VeltProvider
, or else it will not work.useIdentify()
method is an optional configuration object that has a JWT Token
as a field.This can be used to add an additional layer of security to prevent user impersonation.JWT Token
with the Velt SDK.Default: false
By default when you identify a User, we maintain the user auth in the browser unless you explicitly sign out the logged in user.If you are changing a User’s access or any metadata and want those changes to be reflected immediately,
then you should re-call the identify
method with forceReset
option set to true
.