Best answer

Clarification on authentication.

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 Zane 6 May 2021, 23:53

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Userlevel 7
Badge +12

Hi @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.

Userlevel 7
Badge +9

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.