Try ERPNext Buy Support Partners Foundation

In ERPNext how to generate a Token every user

I have an external application from where user is registering. User data has been store in erpnext server.
I want when user login into the external application , during login , in want to generate new token and fetch the required data to the external server.

I do not want session based login.

I want to token based login for all uses who are not system manager , they are basically general customers.
Please suggest .