Follow the following steps to start configure your authentication endpoint and start building your own security logic.
Optionally, you can attach static metadata to each user, which will
be accessible in your app. First you need to define the types in
your config file, under
When authenticating, you can then pass the user’s metadata to
prepareSession in the endpoint we’ve just created.
User metadata has now been set! You can access this information in your app through
Bear in mind that if you’re using the default Comments components,
you must specify a
userInfo can then be used in your React application as such: