Fix authentication by token