Fix emit function name, check access token.