In session-auth, is it mandatory for backend to return a User object/ JSON when you test for successfull exchange of session-key or authenticationToken for username and password. I mean exchnage of authenticationToken is happening while reaching /login endpoint while username and password are passed. Now witht the valid authenticationToken I can test any protected endpoint which this user is authorized to reach.
Best answer by ZaneView original
@dinesh_sharma - If you don’t want to return any other data, you can just return an empty object from the test function after the request is done successfully.
If you’re planning on publishing your integration in the Zapier app directory, you’ll need to configure a “Connected Account Label” - something unique to the user that they can recognize to quickly determine which account they used to connect with your API. A value returned by the auth test request, like a name, or email address, are often used for this and is the often the most convenient way to populate Connected Account Label.
Connected account label in the product:
Thanks for the replies, really appreciate it.