auth methods , save token in conf