Programmatically login user in a web app

I’m quite new to Appgyver and couldn’t find an answer to my below question.
Any help will be highly appreciated.
In, I was able to programmatically login any user with just one line of code.
I was using it for magic-links and other custom authentication scenarios such as self-made OTP.
Is it possible to do this in an Appgyver web app, which is auth enabled?