def METHOD_NAME(master_url: str, token: str) -> None:
    tmp_auth = {"Cookie": "auth={token}".format(token=token)}
    me = api.get(master_url, "/users/me", headers=tmp_auth, authenticated=False).json()
    token_store = authentication.TokenStore(master_url)
    token_store.set_token(me["username"], token)
    token_store.set_active(me["username"])
    print("Authenticated as {}.".format(me["username"]))