How to send an additional attributes using Auth0 Kotlin SDK

Problem statement

Hi, we have implemented Auth0 in our mobile app using Auth0 Kotlin SDK (password grant, we don’t use universal login). Here’s the doc we utilized:

https://javadoc.io/doc/com.auth0.android/auth0/latest/com/auth0/android/authentication/AuthenticationAPIClient.html

At present we want to know if there is an option to send an additional attribute from mobile app to Auth0 using Kotlin SDK, we have tried with Postman using Auth0 endpoints and it is working but we don’t know if it works with Kotlin SDK.

To clarify, we want to send device_id information from mobile app to Auth0 and we want to capture it inside a rule. It works using Postman.

Solution

An example: addParameter is used after the Request object is created.