Authentication API method