Generate accesstoken outside the app

Hi,
is it possible to generate accesstoken outside the app?