Automatic logout form api

Hello,

I am using “nimble:restivus” for api request from a device using plain javascript. I need to remove login tokens automatically because every time user needs to login and collection of user become large (every login it inserts new login tokens).

Please advice.

Regards,
Saransh