Revise api.Auth
Add logger