How to authorize user with email/password from server code?