refactor set_authentication_token to update redis