New set_auth_token function

Created the new set_auth_token as discussed before. I think we should add a step of validation of the token.